diff options
Diffstat (limited to 'xterm-keys.c')
-rw-r--r-- | xterm-keys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xterm-keys.c b/xterm-keys.c index 75eb6751..9b5a0a21 100644 --- a/xterm-keys.c +++ b/xterm-keys.c @@ -133,7 +133,7 @@ xterm_keys_match(const char *template, const char *buf, size_t len) do { if (*template != '_' && buf[pos] != *template) return (-1); - } while (pos++ != len && *++template != '\0'); + } while (*++template != '\0' && ++pos != len); if (*template != '\0') /* partial */ return (1); |