]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
lower the chance of a stack overflow on broken systems ...
authorAndrew Tridgell <tridge@samba.org>
Thu, 28 Mar 2002 03:16:16 +0000 (04:16 +0100)
committerAndrew Tridgell <tridge@samba.org>
Thu, 28 Mar 2002 03:16:16 +0000 (04:16 +0100)
util.c

diff --git a/util.c b/util.c
index d65a29b337b4313897f2a858c7ac202363b5bf16..39d1bfe74736951e89ea829b5d100dfe13b0486a 100644 (file)
--- a/util.c
+++ b/util.c
@@ -115,7 +115,7 @@ void x_asprintf(char **ptr, const char *format, ...)
 {
        va_list ap;
        unsigned ret;
-       char tmp[1024];
+       static char tmp[1024];
 
        *ptr = NULL;
        va_start(ap, format);