From 2f9442b848594799dd155d455930215df2d2a222 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 1 May 2011 16:37:08 -0700 Subject: [PATCH] * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601). --- src/ChangeLog | 2 ++ src/coding.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 230761a6f1..52d7a6cc06 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 d17346efdc..71253df646 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) -- 2.20.1