* coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2011 23:37:08 +0000 (16:37 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 1 May 2011 23:37:08 +0000 (16:37 -0700)
src/ChangeLog
src/coding.c

index 230761a..52d7a6c 100644 (file)
@@ -1,5 +1,7 @@
 2011-05-01  Paul Eggert  <eggert@cs.ucla.edu>
 
+       * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
+
        * charset.h (struct charset.code_space): Now has 15 elements, not 16.
        * charset.c (Fdefine_charset_internal): Don't initialize
        charset.code_space[15].  The value was garbage, on hosts with
index d17346e..71253df 100644 (file)
@@ -5368,8 +5368,8 @@ detect_coding_charset (struct coding_system *coding,
              if (src == src_end)
                goto too_short;
              ONE_MORE_BYTE (c);
-             if (c < charset->code_space[(dim - 1 - idx) * 2]
-                 || c > charset->code_space[(dim - 1 - idx) * 2 + 1])
+             if (c < charset->code_space[(dim - 1 - idx) * 4]
+                 || c > charset->code_space[(dim - 1 - idx) * 4 + 1])
                break;
            }
          if (idx < dim)