diff --git a/src/fileio.c b/src/fileio.c index b50b3c6b935..995e4142f58 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4463,6 +4463,8 @@ by calling `format-decode', which see. */) if (unprocessed > 0) { + BUF_TEMP_SET_PT (XBUFFER (conversion_buffer), + BUF_Z (XBUFFER (conversion_buffer))); coding.mode |= CODING_MODE_LAST_BLOCK; decode_coding_c_string (&coding, (unsigned char *) read_buf, unprocessed, conversion_buffer);