Give configure's snprintf() test a guaranteed short string at the start.
authorWayne Davison <wayne@opencoder.net>
Fri, 29 May 2020 21:37:49 +0000 (14:37 -0700)
committerWayne Davison <wayne@opencoder.net>
Sat, 30 May 2020 00:24:05 +0000 (17:24 -0700)
configure.ac

index fc112875899f202d895cc78dc7430a3c442d1cd1..c27711909bdf0cef033bb23439ea6e5e7bf6210b 100644 (file)
@@ -943,7 +943,7 @@ AC_RUN_IFELSE([AC_LANG_SOURCE([[
 void foo(const char *format, ...) {
        va_list ap;
        int len;
-       char buf[5];
+       static char buf[] = "12345678901234567890";
 
        va_start(ap, format);
        len = vsnprintf(0, 0, format, ap);