]> git.eshelyaron.com Git - emacs.git/commitdiff
(decode_coding_sjis): Check the first byte rigidly.
authorKenichi Handa <handa@m17n.org>
Sat, 24 Jan 2004 09:13:19 +0000 (09:13 +0000)
committerKenichi Handa <handa@m17n.org>
Sat, 24 Jan 2004 09:13:19 +0000 (09:13 +0000)
src/coding.c

index 9da19e53c2e0739d84c921bc89bc5738be7c6faf..2353834b4ad418d1341a0d1e9d0199a7308e0ad0 100644 (file)
@@ -4025,6 +4025,8 @@ decode_coding_sjis (coding)
        goto invalid_code;
       if (c < 0x80)
        charset = charset_roman;
+      else if (c == 0x80)
+       goto invalid_code;
       else
        {
          if (c >= 0xF0)