]> granicus.if.org Git - procps-ng/commit
watch: Fix ANSI escape sequence termination
authorJosh Triplett <josh@joshtriplett.org>
Fri, 8 Jul 2016 07:29:59 +0000 (00:29 -0700)
committerCraig Small <csmall@enc.com.au>
Sat, 9 Jul 2016 05:03:18 +0000 (15:03 +1000)
commit5207a1e98acb4ca57a5b3c833a2e53b5651ad179
treed7136b3165915f2d35e982562ad475d2675c6db5
parent63ef659225aaaf14f22c76ef74c18acba1bb0cee
watch: Fix ANSI escape sequence termination

process_ansi stopped processing an ANSI escape sequence if
(c < '0' && c > '9' && c != ';'), which will never happen.  Fix the
range check to use || instead.

Signed-off-by: Josh Triplett <josh@joshtriplett.org>
watch.c