projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Still bug fix in silc_log_format :)
[silc.git]
/
lib
/
silccore
/
silclog.c
diff --git
a/lib/silccore/silclog.c
b/lib/silccore/silclog.c
index 0b1119fc445c53b49a38bc429081634799f7a1b3..b1ad9186d332d234f0a89ff21c2558415496da89 100644
(file)
--- a/
lib/silccore/silclog.c
+++ b/
lib/silccore/silclog.c
@@
-20,6
+20,9
@@
/*
* $Id$
* $Log$
/*
* $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.
*
* 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];
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);
va_start(args, fmt);
vsnprintf(buf, sizeof(buf) - 1, fmt, args);
va_end(args);