From: Pekka Riikonen Date: Mon, 17 Jul 2000 16:46:37 +0000 (+0000) Subject: Still bug fix in silc_log_format :) X-Git-Tag: SILC.0.1~443 X-Git-Url: http://git.silcnet.org/gitweb/?a=commitdiff_plain;h=575985858582031d937ecfbe9aafb3cfa9abe986;p=silc.git Still bug fix in silc_log_format :) --- 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);