Fix size of flags output buffer.

This commit is contained in:
nicm 2022-06-11 16:59:33 +00:00
parent 18a5835aff
commit 42ddf02ffc

View File

@ -2696,7 +2696,7 @@ input_osc_52(struct input_ctx *ictx, const char *p)
struct screen_write_ctx ctx;
struct paste_buffer *pb;
const char* allow = "cpqs01234567";
char flags[sizeof allow] = "";
char flags[sizeof "cpqs01234567"] = "";
u_int i, j = 0;
if (wp == NULL)