pike.git/
src/
program.c
Branch:
Tag:
Non-build tags
All tags
No tags
1998-05-15
1998-05-15 18:45:37 by Henrik Grubbström (Grubba) <grubba@grubba.org>
52cf1450752f1e5b0861ddbdfb0c775b015698ba (
11
lines) (+
9
/-
2
)
[
Show
|
Annotate
]
Branch:
7.9
Now uses vsnprintf() if available.
Rev: src/error.c:1.19
Rev: src/program.c:1.90
4:
||| See the files COPYING and DISCLAIMER for more information. \*/ #include "global.h"
-
RCSID("$Id: program.c,v 1.
89
1998/
04
/
29
00
:
21
:
13
hubbe
Exp $");
+
RCSID("$Id: program.c,v 1.
90
1998/
05
/
15
18
:
43
:
45
grubba
Exp $");
#include "program.h" #include "object.h" #include "dynamic_buffer.h"
2114:
{ va_list args; char buf[8192];
+
va_start(args,fmt);
-
VSPRINTF(buf,fmt,args);
+
-
+
#ifdef HAVE_VSNPRINTF
+
vsnprintf(buf, 8190, fmt, args);
+
#else /* !HAVE_VSNPRINTF */
+
VSPRINTF(buf, fmt, args);
+
#endif /* HAVE_VSNPRINTF */
+
if((long)strlen(buf) >= (long)sizeof(buf)) fatal("Buffer overflow in my_yyerror.\n");