From a97778adc7369877fe8ef3a1595ce5d57f281abd Mon Sep 17 00:00:00 2001 From: nicm Date: Sat, 11 Jun 2022 16:59:33 +0000 Subject: [PATCH] Fix size of flags output buffer. --- usr.bin/tmux/input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/tmux/input.c b/usr.bin/tmux/input.c index add5f4a6524..711e1f0877b 100644 --- a/usr.bin/tmux/input.c +++ b/usr.bin/tmux/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.204 2022/06/10 11:55:30 nicm Exp $ */ +/* $OpenBSD: input.c,v 1.205 2022/06/11 16:59:33 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott @@ -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) -- 2.20.1