after getting a new string by pre-write-conversion.
BLOCK_INPUT;
+ /* Include the terminating NULL character in the source of
+ conversion. */
nbytes = SBYTES (string) + 1;
src = SDATA (string);
dst = src;
{
string = run_pre_post_conversion_on_str (string, &coding, 1);
src = SDATA (string);
- nbytes = SBYTES (string);
+ /* Include the terminating NULL character in the source of
+ conversion. */
+ nbytes = SBYTES (string) + 1;
}
coding.src_multibyte = 1;
coding.dst_multibyte = 0;