changeset 21502:388b7c77183b

(code_convert_string): Give decode_coding correct byte length of source text.
author Kenichi Handa <handa@m17n.org>
date Tue, 14 Apr 1998 01:06:44 +0000
parents c8c409640bf3
children d08387c742bb
files src/coding.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/coding.c	Tue Apr 14 00:02:53 1998 +0000
+++ b/src/coding.c	Tue Apr 14 01:06:44 1998 +0000
@@ -4388,7 +4388,7 @@
 	    ? 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