From b2dab6c8f718458689396188f659b09571b473dc Mon Sep 17 00:00:00 2001 From: Jason Rumney Date: Sat, 20 Dec 2008 08:01:12 +0000 Subject: [PATCH] (decode_coding): Clear chars_at_source flag when using charbuf. --- src/ChangeLog | 5 +++++ src/coding.c | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/ChangeLog b/src/ChangeLog index 08e44bd095d..45c901fb342 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2008-12-20 Jason Rumney + + * coding.c (decode_coding): Clear chars_at_source flag when using + charbuf. + 2008-12-19 Daniel Engeler * sysdep.c (serial_configure): Fix typo. diff --git a/src/coding.c b/src/coding.c index e292f808597..869a2715640 100644 --- a/src/coding.c +++ b/src/coding.c @@ -6654,6 +6654,8 @@ decode_coding (coding) that the number of data is less than the size of coding->charbuf. */ coding->charbuf_used = 0; + coding->chars_at_source = 0; + while (nbytes-- > 0) { int c = *src++; -- 2.39.2