Give configure's snprintf() test a guaranteed short string at the start.

This commit is contained in:
Wayne Davison committed 2020-05-29 17:24:05 -07:00
1 parent f5446552f3
commit c66e08acb3
1 file changed
+1 -1
+1 -1
View 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);