git.samba.org
/
rsync.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f544655
)
Give configure's snprintf() test a guaranteed short string at the start.
author
Wayne Davison
<wayne@opencoder.net>
Fri, 29 May 2020 21:37:49 +0000
(14:37 -0700)
committer
Wayne Davison
<wayne@opencoder.net>
Sat, 30 May 2020 00:24:05 +0000
(17:24 -0700)
configure.ac
patch
|
blob
|
history
diff --git
a/configure.ac
b/configure.ac
index fc112875899f202d895cc78dc7430a3c442d1cd1..c27711909bdf0cef033bb23439ea6e5e7bf6210b 100644
(file)
--- 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);