diff options
author | Jonathon Weiss <jweiss@mit.edu> | 2000-10-04 11:15:57 +0000 |
---|---|---|
committer | Jonathon Weiss <jweiss@mit.edu> | 2000-10-04 11:15:57 +0000 |
commit | 53ac033bdca215098d958402aee0f85a2a0a9877 (patch) | |
tree | 083a85f1af4ec5c4da5b5b4e8c994a30185f422c /server/bdump.c | |
parent | dbace9d405c75ecc5615bbc833cda5736f35c3fd (diff) |
close possible syslog format string hole
Diffstat (limited to 'server/bdump.c')
-rw-r--r-- | server/bdump.c | 5 |
1 files changed, 1 insertions, 4 deletions
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) { |