diff options
author | Thomas Adam <thomas@xteddy.org> | 2021-02-18 16:01:18 +0000 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2021-02-18 16:01:18 +0000 |
commit | 11e404ca3c80893f59b1001f000c9390216c7e7a (patch) | |
tree | ddf530817297c6a9921a69f5f64db10d0b7615cc | |
parent | 3a76a5682481804541aaddcce27dfa566a7e4cae (diff) | |
parent | fb42ae3071763fdc6a2fe2e57feec774623b1c33 (diff) | |
download | rtmux-11e404ca3c80893f59b1001f000c9390216c7e7a.tar.gz rtmux-11e404ca3c80893f59b1001f000c9390216c7e7a.tar.bz2 rtmux-11e404ca3c80893f59b1001f000c9390216c7e7a.zip |
Merge branch 'obsd-master' into master
-rw-r--r-- | input.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2460,8 +2460,10 @@ input_osc_parse_colour(const char *p) (1 - m) * (1 - k) * 255, (1 - y) * (1 - k) * 255); } else { - while (*p == ' ') + while (len != 0 && *p == ' ') { p++; + len--; + } while (len != 0 && p[len - 1] == ' ') len--; copy = xstrndup(p, len); |