Increase stat_str size to 8

This commit is contained in:
2021-12-27 17:16:42 +01:00
parent 9eaa644fa1
commit 2a3f74e825

View File

@ -568,7 +568,7 @@ int client_request_handler(sock *client, unsigned long client_num, unsigned int
char *rev_proxy_doc = ""; char *rev_proxy_doc = "";
if (conf != NULL && conf->type == CONFIG_TYPE_REVERSE_PROXY) { if (conf != NULL && conf->type == CONFIG_TYPE_REVERSE_PROXY) {
const http_status *status = http_get_status(ctx.status); const http_status *status = http_get_status(ctx.status);
char stat_str[4]; char stat_str[8];
sprintf(stat_str, "%03i", ctx.status); sprintf(stat_str, "%03i", ctx.status);
sprintf(msg_pre_buf_2, http_rev_proxy_document, sprintf(msg_pre_buf_2, http_rev_proxy_document,
" success", " success",