buffer before calling build_string.
2001-05-29 Gerd Moellmann <gerd@gnu.org>
+ * keymap.c (Fsingle_key_description): NUL-terminate the string
+ buffer before calling build_string.
+
* callproc.c (Fcall_process): Deal with decode_coding returning
CODING_FINISH_INCONSISTENT_EOL.
nbytes = end - tem;
nchars = multibyte_chars_in_text (tem, nbytes);
if (nchars == nbytes)
- string = build_string (tem);
+ {
+ *end = '\0';
+ string = build_string (tem);
+ }
else
string = make_multibyte_string (tem, nchars, nbytes);
return string;