From: Paul Eggert Date: Sun, 1 May 2011 23:37:08 +0000 (-0700) Subject: * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601). X-Git-Tag: emacs-pretest-24.0.90~104^2~275^2~92^2~22^2 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2f9442b848594799dd155d455930215df2d2a222;p=emacs.git * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601). --- diff --git a/src/ChangeLog b/src/ChangeLog index 230761a6f1e..52d7a6cc068 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2011-05-01 Paul Eggert + * 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 diff --git a/src/coding.c b/src/coding.c index d17346efdcb..71253df6469 100644 --- a/src/coding.c +++ b/src/coding.c @@ -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)