From 8782a47a05ab7ba8711e4b9d1d40415823c19fe3 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Wed, 23 Feb 2022 20:32:53 +0000 Subject: [PATCH] gcc12: fix potential test app string overflow --- test-apps/test-client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test-apps/test-client.c b/test-apps/test-client.c index 640fa8a0a..afed493f9 100644 --- a/test-apps/test-client.c +++ b/test-apps/test-client.c @@ -125,7 +125,7 @@ callback_dumb_increment(struct lws *wsi, enum lws_callback_reasons reason, #endif #endif const char *which = "http"; - char which_wsi[10], buf[50 + LWS_PRE]; + char which_wsi[20], buf[50 + LWS_PRE]; int n; switch (reason) {