From: Wayne Davison Date: Fri, 29 May 2020 21:37:49 +0000 (-0700) Subject: Give configure's snprintf() test a guaranteed short string at the start. X-Git-Tag: v3.2.0pre1~77 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c66e08acb3f73ffbbaa9aa515c5de4edb092c0b0;p=thirdparty%2Frsync.git Give configure's snprintf() test a guaranteed short string at the start. --- diff --git a/configure.ac b/configure.ac index fc112875..c2771190 100644 --- a/configure.ac +++ b/configure.ac @@ -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);