summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2002-06-07 07:46:57 +0000
committerkris <kris@FreeBSD.org>2002-06-07 07:46:57 +0000
commitda9274f12f321c574410ca7213992ae459aa8578 (patch)
tree7525b46d045148902a54982e2e4eabbc59b4bb13 /net
parent6ef14aa95ebaa5d349524d5db3e550393a598f53 (diff)
downloadFreeBSD-ports-da9274f12f321c574410ca7213992ae459aa8578.zip
FreeBSD-ports-da9274f12f321c574410ca7213992ae459aa8578.tar.gz
Fix some format string bugs
Diffstat (limited to 'net')
-rw-r--r--net/dnstracer/files/patch-aa30
1 files changed, 30 insertions, 0 deletions
diff --git a/net/dnstracer/files/patch-aa b/net/dnstracer/files/patch-aa
new file mode 100644
index 0000000..cbbbdd7
--- /dev/null
+++ b/net/dnstracer/files/patch-aa
@@ -0,0 +1,30 @@
+--- dnstracer.c.orig Fri Jun 7 00:45:45 2002
++++ dnstracer.c Fri Jun 7 00:45:26 2002
+@@ -484,11 +484,11 @@
+ return retval;
+
+ case ns_t_cname:
+- sprintf(retval,printablename(getname(session,&buffer),dots));
++ sprintf(retval,"%s",printablename(getname(session,&buffer),dots));
+ return retval;
+
+ case ns_t_txt:
+- sprintf(retval,printablename(getname(session,&buffer),dots));
++ sprintf(retval,"%s",printablename(getname(session,&buffer),dots));
+ return retval;
+
+ case ns_t_mx:
+@@ -502,11 +502,11 @@
+ }
+
+ case ns_t_hinfo:
+- sprintf(retval,printablename(getname(session,&buffer),dots));
++ sprintf(retval,"%s",printablename(getname(session,&buffer),dots));
+ return retval;
+
+ case ns_t_ns:
+- sprintf(retval,printablename(getname(session,&buffer),dots));
++ sprintf(retval,"%s",printablename(getname(session,&buffer),dots));
+ return retval;
+
+ default: return "unknown";
OpenPOWER on IntegriCloud