summaryrefslogtreecommitdiffstats
path: root/libexec/tftpd
diff options
context:
space:
mode:
authorsbruno <sbruno@FreeBSD.org>2013-01-30 01:36:04 +0000
committersbruno <sbruno@FreeBSD.org>2013-01-30 01:36:04 +0000
commit4a8d6a5695da92c747161660a417dd68846f21fa (patch)
treed008ce2983a18cdcb9659ba513ad8e83cae8cb28 /libexec/tftpd
parent1a89a21cbd61e82e4c1a20a42cb30342e26ef1a6 (diff)
downloadFreeBSD-src-4a8d6a5695da92c747161660a417dd68846f21fa.zip
FreeBSD-src-4a8d6a5695da92c747161660a417dd68846f21fa.tar.gz
Remove extra %s from debug statement that ends up crashing tftpd if
debug is set very high (like -d15 in my case). Obtained from: Yahoo! Inc MFC after: 2 weeks
Diffstat (limited to 'libexec/tftpd')
-rw-r--r--libexec/tftpd/tftp-io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/tftpd/tftp-io.c b/libexec/tftpd/tftp-io.c
index 1d4f743..eaf4f39 100644
--- a/libexec/tftpd/tftp-io.c
+++ b/libexec/tftpd/tftp-io.c
@@ -142,7 +142,7 @@ send_error(int peer, int error)
char buf[MAXPKTSIZE];
if (debug&DEBUG_PACKETS)
- tftp_log(LOG_DEBUG, "Sending ERROR %d: %s", error);
+ tftp_log(LOG_DEBUG, "Sending ERROR %d", error);
DROPPACKET("send_error");
OpenPOWER on IntegriCloud