summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2022-06-11 16:59:34 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2022-06-11 16:59:34 +0000
commit2406edb01d84cc24d86ce378f6639eb62d96a341 (patch)
tree9a486c55e66dd85f04634e96e1feac1c9eb23180 /usr.bin
parent2e8d830d577767ba223cd9728e0f42bbad7d1000 (diff)
Fix size of flags output buffer.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/tmux/input.c4
1 files 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 <nicholas.marriott@gmail.com>
@@ -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)