aboutsummaryrefslogtreecommitdiffstats
path: root/src/coding.c
diff options
context:
space:
mode:
authorKenichi Handa1998-04-14 01:06:44 +0000
committerKenichi Handa1998-04-14 01:06:44 +0000
commitf30cc6122e343fe6a9afbda2e2230da87fc7c5a0 (patch)
treec542fc5d5cb13a103c502017ffb0e9de86709f2a /src/coding.c
parent06bd27fdf5fa529e58ce129e3d906d17b5dcda34 (diff)
downloademacs-f30cc6122e343fe6a9afbda2e2230da87fc7c5a0.tar.gz
emacs-f30cc6122e343fe6a9afbda2e2230da87fc7c5a0.zip
(code_convert_string): Give decode_coding correct byte
length of source text.
Diffstat (limited to 'src/coding.c')
-rw-r--r--src/coding.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/coding.c b/src/coding.c
index 0152b327295..e94cee5e2de 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -4388,7 +4388,7 @@ code_convert_string (str, coding, encodep, nocopy)
4388 ? encode_coding (coding, XSTRING (str)->data + from, 4388 ? encode_coding (coding, XSTRING (str)->data + from,
4389 buf + from, to_byte - from, len) 4389 buf + from, to_byte - from, len)
4390 : decode_coding (coding, XSTRING (str)->data + from, 4390 : decode_coding (coding, XSTRING (str)->data + from,
4391 buf + from, to - from, len)); 4391 buf + from, to_byte - from, len));
4392 if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL) 4392 if (! encodep && result == CODING_FINISH_INCONSISTENT_EOL)
4393 { 4393 {
4394 /* We simple try to decode the whole string again but without 4394 /* We simple try to decode the whole string again but without