aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa2005-10-15 02:09:14 +0000
committerKenichi Handa2005-10-15 02:09:14 +0000
commit1c91457d1556c51d064e29a34ffff9f93010ece2 (patch)
treea55ad0f9f7ee096ffd01350a9c86b1798e9037bd /src/coding.c
parent9fe76e1b256aefe892edf84beb1fdfaf5ab0efa1 (diff)
downloademacs-1c91457d1556c51d064e29a34ffff9f93010ece2.tar.gz
emacs-1c91457d1556c51d064e29a34ffff9f93010ece2.zip
(decode_coding): Fix handling of invalid bytes.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 15130b90719..1a9b13fd10e 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6208,7 +6208,9 @@ decode_coding (coding)
6208 { 6208 {
6209 int c = *src++; 6209 int c = *src++;
6210 6210
6211 coding->charbuf[coding->charbuf_used++] = (c & 0x80 ? - c : c); 6211 if (c & 0x80)
6212 c = BYTE8_TO_CHAR (c);
6213 coding->charbuf[coding->charbuf_used++] = c;
6212 } 6214 }
6213 produce_chars (coding, Qnil, 1); 6215 produce_chars (coding, Qnil, 1);
6214 } 6216 }