From: Travis Cross Date: Tue, 5 Feb 2013 19:27:24 +0000 (+0000) Subject: Fix corrupted '\n' chars X-Git-Tag: v0.83~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e59635f2e814305b8145406a27605f9ae1c6f9d;p=thirdparty%2Fmtr.git Fix corrupted '\n' chars This fixes commit e81da3a2fab6af4969902b6c268c8dfac43ea6fb --- diff --git a/asn.c b/asn.c index 9ad8907..b8f97d7 100644 --- a/asn.c +++ b/asn.c @@ -50,7 +50,7 @@ char *asn_lookup(const char *domain) if(res_init() < 0) { - fprintf(stderr,"@res_init failedn"); + fprintf(stderr,"@res_init failed\n"); return NULL; } @@ -62,26 +62,26 @@ char *asn_lookup(const char *domain) pt = answer + sizeof(HEADER); if((exp = dn_expand(answer, answer + len, pt, host, sizeof(host))) < 0) { - printf("@dn_expand failedn"); return NULL; + printf("@dn_expand failed\n"); return NULL; } pt += exp; GETSHORT(type, pt); if(type != T_TXT) { - printf("@Broken DNS reply.n"); return NULL; + printf("@Broken DNS reply.\n"); return NULL; } pt += INT16SZ; /* class */ if((exp = dn_expand(answer, answer + len, pt, host, sizeof(host))) < 0) { - printf("@second dn_expand failedn"); return NULL; + printf("@second dn_expand failed\n"); return NULL; } pt += exp; GETSHORT(type, pt); if(type != T_TXT) { - printf("@Not a TXT recordn"); return NULL; + printf("@Not a TXT record\n"); return NULL; } pt += INT16SZ; /* class */ @@ -91,7 +91,7 @@ char *asn_lookup(const char *domain) if(txtlen >= size || !txtlen) { - printf("@Broken TXT record (txtlen = %d, size = %d)n", txtlen, size); return NULL; + printf("@Broken TXT record (txtlen = %d, size = %d)\n", txtlen, size); return NULL; } if(!(txt = malloc(txtlen + 1)))