aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert2011-05-01 16:37:08 -0700
committerPaul Eggert2011-05-01 16:37:08 -0700
commit2f9442b848594799dd155d455930215df2d2a222 (patch)
tree8d8dbaa70ba3da94202596f36061e01beacc12c3 /src
parent2d38271b704d7a3dc9453a6cda4a2115e6b9a56f (diff)
downloademacs-2f9442b848594799dd155d455930215df2d2a222.tar.gz
emacs-2f9442b848594799dd155d455930215df2d2a222.zip
* coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog2
-rw-r--r--src/coding.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 230761a6f1e..52d7a6cc068 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,7 @@
12011-05-01 Paul Eggert <eggert@cs.ucla.edu> 12011-05-01 Paul Eggert <eggert@cs.ucla.edu>
2 2
3 * coding.c (detect_coding_charset): Fix typo: * 2 -> *4 (Bug#8601).
4
3 * charset.h (struct charset.code_space): Now has 15 elements, not 16. 5 * charset.h (struct charset.code_space): Now has 15 elements, not 16.
4 * charset.c (Fdefine_charset_internal): Don't initialize 6 * charset.c (Fdefine_charset_internal): Don't initialize
5 charset.code_space[15]. The value was garbage, on hosts with 7 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,
5368 if (src == src_end) 5368 if (src == src_end)
5369 goto too_short; 5369 goto too_short;
5370 ONE_MORE_BYTE (c); 5370 ONE_MORE_BYTE (c);
5371 if (c < charset->code_space[(dim - 1 - idx) * 2] 5371 if (c < charset->code_space[(dim - 1 - idx) * 4]
5372 || c > charset->code_space[(dim - 1 - idx) * 2 + 1]) 5372 || c > charset->code_space[(dim - 1 - idx) * 4 + 1])
5373 break; 5373 break;
5374 } 5374 }
5375 if (idx < dim) 5375 if (idx < dim)