1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

gcc12: fix potential test app string overflow

This commit is contained in:
Andy Green 2022-02-23 20:32:53 +00:00
parent 2cf7e0f4ec
commit 8782a47a05

View file

@ -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) {