From 7a84eee5b745ad577d414158716ffe2ee487a117 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Fri, 6 Aug 2010 17:11:19 +0900 Subject: Improve the encoding by compound-text-with-extensions. --- src/coding.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/coding.c') diff --git a/src/coding.c b/src/coding.c index bdc37cb7c53..aef80f5cc80 100644 --- a/src/coding.c +++ b/src/coding.c @@ -3935,7 +3935,7 @@ decode_coding_iso_2022 (coding) int size; ONE_MORE_BYTE (dim); - if (dim < 0 || dim > 4) + if (dim < '0' || dim > '4') goto invalid_code; ONE_MORE_BYTE (M); if (M < 128) -- cgit v1.2.1