From 1dc48f72aac96eacbdbb81920d6cf6bac61fe24b Mon Sep 17 00:00:00 2001 From: Jakob Kaivo Date: Fri, 7 Jun 2024 15:00:10 -0400 Subject: use a buffer of BUFSIZ --- src/stdio/_format.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.1