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