From 53ac033bdca215098d958402aee0f85a2a0a9877 Mon Sep 17 00:00:00 2001 From: Jonathon Weiss Date: Wed, 4 Oct 2000 11:15:57 +0000 Subject: close possible syslog format string hole --- server/bdump.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'server/bdump.c') diff --git a/server/bdump.c b/server/bdump.c index 2de58e4..a4e2d9e 100644 --- a/server/bdump.c +++ b/server/bdump.c @@ -816,13 +816,10 @@ bdump_recv_loop(server) } #if defined (DEBUG) if (zdebug) { - char buf[4096]; - - sprintf(buf, "bdump:%s '%s' '%s' '%s' '%s' '%s'", + syslog(LOG_DEBUG, "bdump:%s '%s' '%s' '%s' '%s' '%s'", ZNoticeKinds[(int) notice.z_kind], notice.z_class, notice.z_class_inst, notice.z_opcode, notice.z_sender, notice.z_recipient); - syslog(LOG_DEBUG, buf); } #endif /* DEBUG */ if (notice.z_num_other_fields >= 1) { -- cgit v1.2.3