X-Git-Url: https://git.saurik.com/apple/libinfo.git/blobdiff_plain/84e6ee29846bd48cc36d74aeb5c13c52a59c5a55..d49d4c8153e0d4ad98ce995c3e488a8b52df9a8e:/dns.subproj/res_debug.c diff --git a/dns.subproj/res_debug.c b/dns.subproj/res_debug.c index bf83730..eb075c9 100644 --- a/dns.subproj/res_debug.c +++ b/dns.subproj/res_debug.c @@ -84,11 +84,13 @@ static char rcsid[] = "$Id: res_debug.c,v 1.5 2004/06/11 23:16:00 majka Exp $"; #include #include #include -#include #include #include -#include + +#include "nameser8_compat.h" +#include "resolv8_compat.h" + #if defined(BSD) && (BSD >= 199103) # include #else @@ -236,7 +238,7 @@ do_rrset(msg, len, cp, cnt, pflag, file, hs) if ((n = ntohs(cnt))) { if ((!_res.pfcode) || ((sflag) && (_res.pfcode & RES_PRF_HEAD1))) - fprintf(file, hs); + fprintf(file, "%s", hs); while (--n >= 0) { if ((!_res.pfcode) || sflag) { cp = p_rr(cp, msg, file);