summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2024-06-07 15:00:10 -0400
committerJakob Kaivo <jkk@ung.org>2024-06-07 15:00:10 -0400
commit1dc48f72aac96eacbdbb81920d6cf6bac61fe24b (patch)
treecf07cc787379db122609236707d54f5ec9031537 /src
parentfd466889b49dfe528567587183c2aedd27836f27 (diff)
use a buffer of BUFSIZ
Diffstat (limited to 'src')
-rw-r--r--src/stdio/_format.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdio/_format.h b/src/stdio/_format.h
index 5930fdb6..f209f891 100644
--- a/src/stdio/_format.h
+++ b/src/stdio/_format.h
@@ -9,7 +9,7 @@
#include "_safety.h"
#define UNDEFINED_FMT(__conv, __fmt, ...) do { \
- char __buf[128]; \
+ char __buf[BUFSIZ]; \
snprintf(__buf, sizeof(__buf), "In call to %s() with format string \"%s\": Invalid conversion specification: ", __conv->func, __conv->fmt); \
__undefined("%s" __fmt, __buf, __VA_ARGS__); \
} while (0)