overflow problem in lprintf(). I also did the same fix to cprintf().
$Log$
+ Revision 590.134 2002/03/09 22:52:04 ajc
+ * Applied a patch submitted by <xperc@hotmail.com> to fix a potential buffer
+ overflow problem in lprintf(). I also did the same fix to cprintf().
+
Revision 590.133 2002/03/09 16:47:57 ajc
* Added BMBX to fix a problem
Fri Jul 10 1998 Art Cancro <ajc@uncensored.citadel.org>
* Initial CVS import
+
/* Otherwise, start spewing... */
va_start(arg_ptr, format);
- vsprintf(buf, format, arg_ptr);
+ vsnprintf(buf, sizeof(buf), format, arg_ptr);
va_end(arg_ptr);
for (i=0; i<strlen(buf); ++i) {
char buf[SIZ];
va_start(arg_ptr, format);
- vsprintf(buf, format, arg_ptr);
+ vsnprintf(buf, sizeof(buf), format, arg_ptr);
va_end(arg_ptr);
if (loglevel <= verbosity) {