]> git.eshelyaron.com Git - emacs.git/commitdiff
(code_convert_string): Give decode_coding correct byte
authorKenichi Handa <handa@m17n.org>
Tue, 14 Apr 1998 01:06:44 +0000 (01:06 +0000)
committerKenichi Handa <handa@m17n.org>
Tue, 14 Apr 1998 01:06:44 +0000 (01:06 +0000)
length of source text.

src/coding.c

index 0152b32729568ab3e6f7cd72da7a7a241d6fc6dc..e94cee5e2de9c0dbee3efe7800e1a463867a1eb6 100644 (file)
@@ -4388,7 +4388,7 @@ code_convert_string (str, coding, encodep, nocopy)
            ? encode_coding (coding, XSTRING (str)->data + from,
                             buf + from, to_byte - from, len)
            : decode_coding (coding, XSTRING (str)->data + from,
-                            buf + from, to - from, len));
+                            buf + from, to_byte - from, len));
   if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL)
     {
       /* We simple try to decode the whole string again but without