aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2022-06-10 16:01:11 +0100
committerThomas Adam <thomas@xteddy.org>2022-06-10 16:01:11 +0100
commit56390e0a394aa8a22fee5bfdcaf842062ca6ee74 (patch)
treeb54c1f0202a25b77c1def9de8802324cb962ab35 /input.c
parent67960dcc9ad3ed0bde23c1a7c8202c9b2aeec34f (diff)
parent18a5835affc3fef58f673a8feeb128cf4132525e (diff)
downloadrtmux-56390e0a394aa8a22fee5bfdcaf842062ca6ee74.tar.gz
rtmux-56390e0a394aa8a22fee5bfdcaf842062ca6ee74.tar.bz2
rtmux-56390e0a394aa8a22fee5bfdcaf842062ca6ee74.zip
Merge branch 'obsd-master'
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input.c b/input.c
index fa9dfcdf..05654124 100644
--- a/input.c
+++ b/input.c
@@ -2292,6 +2292,8 @@ input_exit_osc(struct input_ctx *ictx)
option = 0;
while (*p >= '0' && *p <= '9')
option = option * 10 + *p++ - '0';
+ if (*p != ';' && *p != '\0')
+ return;
if (*p == ';')
p++;