diff options
| author | Kenichi Handa | 2005-10-15 02:09:14 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2005-10-15 02:09:14 +0000 |
| commit | 1c91457d1556c51d064e29a34ffff9f93010ece2 (patch) | |
| tree | a55ad0f9f7ee096ffd01350a9c86b1798e9037bd /src/coding.c | |
| parent | 9fe76e1b256aefe892edf84beb1fdfaf5ab0efa1 (diff) | |
| download | emacs-1c91457d1556c51d064e29a34ffff9f93010ece2.tar.gz emacs-1c91457d1556c51d064e29a34ffff9f93010ece2.zip | |
(decode_coding): Fix handling of invalid bytes.
Diffstat (limited to 'src/coding.c')
| -rw-r--r-- | src/coding.c | 4 |
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 | } |