aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2015-05-28 20:16:55 +0200
committerPřemysl Janouch <p.janouch@gmail.com>2015-05-28 20:16:55 +0200
commitd49fbadd67929877416f82cd4751c62efe53b85f (patch)
treecfefccdb92fbf9f6806e575cc4095956ecb9ca4c
parentbc0a71f082296cad0ca590889ead558b70fb39d9 (diff)
downloadtermo-d49fbadd67929877416f82cd4751c62efe53b85f.tar.gz
termo-d49fbadd67929877416f82cd4751c62efe53b85f.tar.xz
termo-d49fbadd67929877416f82cd4751c62efe53b85f.zip
Fix off-by-one bug
-rw-r--r--driver-csi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/driver-csi.c b/driver-csi.c
index ded62df..8e84401 100644
--- a/driver-csi.c
+++ b/driver-csi.c
@@ -465,7 +465,7 @@ parse_csi (termo_t *tk, size_t introlen, size_t *csi_len,
// parsing DECRPM responses (mode reports). We can work around this
// ambiguity by making use of the fact that rxvt key sequences have
// exactly one numeric argument and no initial byte.
- if (c <= '0' || c >= '9')
+ if (c < '0' || c > '9')
allow_dollar = false;
csi_end++;