diff options
author | nicm <nicm> | 2020-01-12 20:20:20 +0000 |
---|---|---|
committer | nicm <nicm> | 2020-01-12 20:20:20 +0000 |
commit | deb734c7f61c36e18ccc2e4fdab4f06a90575fc9 (patch) | |
tree | 5358005997c4985e95fdd33a315aab79fc81bcd9 | |
parent | 36eb16ce7db2db71b510964a2e453e6b349b03f0 (diff) | |
download | rtmux-deb734c7f61c36e18ccc2e4fdab4f06a90575fc9.tar.gz rtmux-deb734c7f61c36e18ccc2e4fdab4f06a90575fc9.tar.bz2 rtmux-deb734c7f61c36e18ccc2e4fdab4f06a90575fc9.zip |
Loop over all DA features, don't skip the first.
-rw-r--r-- | tty-keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1038,7 +1038,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len, cp = tmp; while ((next = strsep(&cp, ";")) != NULL) { p[n] = strtoul(next, &endptr, 10); - if (*endptr != '\0' && *endptr != ';') + if (*endptr != '\0') p[n] = 0; n++; } @@ -1068,7 +1068,7 @@ tty_keys_device_attributes(struct tty *tty, const char *buf, size_t len, type = TTY_VT520; break; } - for (i = 2; i < n; i++) + for (i = 1; i < n; i++) log_debug("%s: DA feature: %d", c->name, p[i]); tty_set_type(tty, type); |