From: Ken Raeburn Date: Fri, 16 Jun 2000 16:00:52 +0000 (+0000) Subject: * xdisp.c (decode_mode_spec): In "no_value" case, do NUL termination of string. X-Git-Tag: emacs-pretest-21.0.90~3280 X-Git-Url: https://code.delx.au/gnu-emacs/commitdiff_plain/b357b9d406ef9b21d002755690ece2f39ae1dcc0 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL termination of string. --- diff --git a/src/ChangeLog b/src/ChangeLog index ed02be8761..d2ed2280ea 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2000-06-16 Ken Raeburn + + * xdisp.c (decode_mode_spec): In "no_value" case, do NUL + termination of string. + 2000-06-16 Gerd Moellmann * keymap.c (describe_buffer_bindings): Add `\f\n' in front diff --git a/src/xdisp.c b/src/xdisp.c index 68e915f027..2e57f62086 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -12385,7 +12385,8 @@ decode_mode_spec (w, c, field_width, precision) while (pad-- > 0) *p++ = ' '; *p++ = '?'; - *p = '?'; + *p++ = '?'; + *p = '\0'; return decode_mode_spec_buf; } }