File: patch-ircii-4.4%2Bnoinfect

package info (click to toggle)
ircii 4.4-3
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 4,256 kB
  • ctags: 2,797
  • sloc: ansic: 36,743; sh: 907; makefile: 483; lex: 16
file content (20 lines) | stat: -rw-r--r-- 415 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -urN ircii-4.4/source/hook.c ircii-4.4-noinfect/source/hook.c
--- ircii-4.4/source/hook.c
Mon Apr 21 08:34:00 1997
+++ ircii-4.4-noinfect/source/hook.c
Sat May 30 20:11:28 1998
@@ -431,7 +431,7 @@

 #ifdef HAVE_STDARG_H

va_start(vl, format);
-
vsprintf(buffer, format, vl);
+
vsnprintf(buffer, BIG_BUFFER_SIZE+1, format, vl);

va_end(vl);
 #else

sprintf(buffer, format, arg1, arg2, arg3, arg4, arg5, arg6);