diff options
| author | Andrey V.Kosteltsev <kx@radix.pro> | 2026-03-03 18:08:36 +0300 |
|---|---|---|
| committer | Andrey V.Kosteltsev <kx@radix.pro> | 2026-03-03 18:08:36 +0300 |
| commit | e9c7b8a8c2788b7d6181ddb48ee7f953a5b07485 (patch) | |
| tree | a943beb2fd450c233d5607c6d60ec55cf56ed1d7 /cgitcgi/fatal.c | |
| parent | 981fb3912bdce871754f2cfb5b7039d79f33aecf (diff) | |
| download | cgit-ui-trunk.tar.xz | |
Fixed: format truncations warningsHEADcgit-ui-0.1.8trunk
Diffstat (limited to 'cgitcgi/fatal.c')
| -rw-r--r-- | cgitcgi/fatal.c | 6 |
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" |
