summaryrefslogtreecommitdiff
path: root/src/global.h
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-05-23 15:14:45 +0200
committerTobias Klauser <tklauser@distanz.ch>2009-05-23 15:14:45 +0200
commite016103fa25167594b9ff5d410019f114b7a36fb (patch)
tree0fd8b5b9c824f3611c24ed00dcbc2058579e15a1 /src/global.h
parent04b38c4c173cef3b1b12163f1cf5a9b3cef8cb4a (diff)
New upstream release 15.7a, fixing CVE-2009-014815-7a-1
Diffstat (limited to 'src/global.h')
-rw-r--r--src/global.h20
1 files changed, 18 insertions, 2 deletions
diff --git a/src/global.h b/src/global.h
index 212906d..a61f59e 100644
--- a/src/global.h
+++ b/src/global.h
@@ -30,7 +30,7 @@
DAMAGE.
=========================================================================*/
-/* $Id: global.h,v 1.35 2006/07/23 20:59:20 broeker Exp $ */
+/* $Id: global.h,v 1.37 2009/04/10 13:39:23 broeker Exp $ */
/* cscope - interactive C symbol cross-reference
*
@@ -94,6 +94,22 @@ char *memset();
typedef RETSIGTYPE (*sighandler_t)(int);
#endif
+#if HAVE_STDARG_H
+#include <stdarg.h>
+#if !HAVE_VSNPRINTF
+int rpl_vsnprintf(char *, size_t, const char *, va_list);
+#endif
+#if !HAVE_SNPRINTF
+int rpl_snprintf(char *, size_t, const char *, ...);
+#endif
+#if !HAVE_VASPRINTF
+int rpl_vasprintf(char **, const char *, va_list);
+#endif
+#if !HAVE_ASPRINTF
+int rpl_asprintf(char **, const char *, ...);
+#endif
+#endif /* HAVE_STDARG_H */
+
/* FIXME: this testing for platforms is foolish. Stop it! */
#if BSD
# undef tolower /* BSD toupper and tolower don't test the character */
@@ -248,7 +264,7 @@ extern char temp1[]; /* temporary file name */
extern char temp2[]; /* temporary file name */
extern long totalterms; /* total inverted index terms */
extern BOOL trun_syms; /* truncate symbols to 8 characters */
-extern char tempstring[8192]; /* global dummy string buffer */
+extern char tempstring[TEMPSTRING_LEN + 1]; /* global dummy string buffer */
extern char *tmpdir; /* temporary directory */
/* command.c global data */