mirror of
https://github.com/RsyncProject/rsync.git
synced 2026-10-21 05:14:15 -04:00
Give configure's snprintf() test a guaranteed short string at the start.
This commit is contained in:
1 parent
f5446552f3
commit
c66e08acb3
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user