diff options
author | kris <kris@FreeBSD.org> | 2002-06-07 07:46:57 +0000 |
---|---|---|
committer | kris <kris@FreeBSD.org> | 2002-06-07 07:46:57 +0000 |
commit | da9274f12f321c574410ca7213992ae459aa8578 (patch) | |
tree | 7525b46d045148902a54982e2e4eabbc59b4bb13 /net | |
parent | 6ef14aa95ebaa5d349524d5db3e550393a598f53 (diff) | |
download | FreeBSD-ports-da9274f12f321c574410ca7213992ae459aa8578.zip FreeBSD-ports-da9274f12f321c574410ca7213992ae459aa8578.tar.gz |
Fix some format string bugs
Diffstat (limited to 'net')
-rw-r--r-- | net/dnstracer/files/patch-aa | 30 |
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"; |