From 575985858582031d937ecfbe9aafb3cfa9abe986 Mon Sep 17 00:00:00 2001 From: Pekka Riikonen Date: Mon, 17 Jul 2000 16:46:37 +0000 Subject: [PATCH] Still bug fix in silc_log_format :) --- lib/silccore/silclog.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/silccore/silclog.c b/lib/silccore/silclog.c index 0b1119fc..b1ad9186 100644 --- a/lib/silccore/silclog.c +++ b/lib/silccore/silclog.c @@ -20,6 +20,9 @@ /* * $Id$ * $Log$ + * Revision 1.5 2000/07/17 16:46:37 priikone + * Still bug fix in silc_log_format :) + * * Revision 1.4 2000/07/17 16:44:57 priikone * Buffer overflow bug fixe in silc_log_format. * @@ -65,7 +68,7 @@ char *silc_log_format(char *fmt, ...) va_list args; static char buf[8192]; - memset(buf, 0, sizeof(buf); + memset(buf, 0, sizeof(buf)); va_start(args, fmt); vsnprintf(buf, sizeof(buf) - 1, fmt, args); va_end(args); -- 2.24.0