summaryrefslogtreecommitdiff
path: root/cgitcgi/fatal.c
diff options
context:
space:
mode:
authorAndrey V.Kosteltsev <kx@radix.pro>2026-03-03 18:08:36 +0300
committerAndrey V.Kosteltsev <kx@radix.pro>2026-03-03 18:08:36 +0300
commite9c7b8a8c2788b7d6181ddb48ee7f953a5b07485 (patch)
treea943beb2fd450c233d5607c6d60ec55cf56ed1d7 /cgitcgi/fatal.c
parent981fb3912bdce871754f2cfb5b7039d79f33aecf (diff)
downloadcgit-ui-trunk.tar.xz
Fixed: format truncations warningsHEADcgit-ui-0.1.8trunk
Diffstat (limited to 'cgitcgi/fatal.c')
-rw-r--r--cgitcgi/fatal.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cgitcgi/fatal.c b/cgitcgi/fatal.c
index 3a2f72f..4c3318e 100644
--- a/cgitcgi/fatal.c
+++ b/cgitcgi/fatal.c
@@ -34,7 +34,7 @@ void fatal( const char *fmt, ... )
{
va_list arg_ptr;
char buf[HTTP_ERRMSG_SIZE];
- char msg[HTTP_ERRMSG_SIZE];
+ char msg[HTTP_ERRMSG_SIZE-16];
char *format = "%s: %s\n";
va_start( arg_ptr, fmt );
@@ -56,7 +56,7 @@ void fatal_json( const char *fmt, ... )
char resp[HTTP_ERRMSG_SIZE];
char json[HTTP_ERRMSG_SIZE];
- char msg[HTTP_ERRMSG_SIZE];
+ char msg[HTTP_ERRMSG_SIZE-80];
char *http_format = "Status: 500 Internal Server Error\n"
"Date: %s\n"
@@ -87,7 +87,7 @@ void fatal_html( const char *fmt, ... )
char resp[HTTP_ERRMSG_SIZE];
char html[HTTP_ERRMSG_SIZE];
- char msg[HTTP_ERRMSG_SIZE];
+ char msg[HTTP_ERRMSG_SIZE-2048];
char *http_format = "Status: 500 Internal Server Error\n"
"Date: %s\n"