We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 348ede3 commit 1f786e2Copy full SHA for 1f786e2
checktxt.c
@@ -33,7 +33,7 @@
33
34
#define xxprintf(...) \
35
{ char buffer; /* needed for older glibc */ \
36
- int t = snprintf(&buffer, 1, ##__VA_ARGS__); \
+ int t = snprintf(&buffer, 0, ##__VA_ARGS__); \
37
elements[elidx]=alloca(t+1); \
38
snprintf(elements[elidx], t+1, ##__VA_ARGS__); \
39
len+=t; elidx++; }
0 commit comments