Mercurial > emacs
diff src/coding.c @ 68567:ae0affba29c8
(decode_composition_emacs_mule): Fix handling of
incorrect format data.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Thu, 02 Feb 2006 12:46:51 +0000 |
| parents | 547f2b420666 |
| children | 3bd95f4f2941 49f9dd4bb117 d6f8fe3307c8 |
line wrap: on
line diff
--- a/src/coding.c Thu Feb 02 12:28:18 2006 +0000 +++ b/src/coding.c Thu Feb 02 12:46:51 2006 +0000 @@ -872,7 +872,7 @@ component[ncomponent] = c; } } - else + else if (c >= 0x80) { /* This may be an old Emacs 20 style format. See the comment at the section 2 of this file. */ @@ -924,6 +924,8 @@ else return 0; } + else + return 0; if (buf == bufp || dst + (bufp - buf) <= (dst_bytes ? dst_end : src)) {
