aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Raeburn2000-06-16 16:00:52 +0000
committerKen Raeburn2000-06-16 16:00:52 +0000
commitb357b9d406ef9b21d002755690ece2f39ae1dcc0 (patch)
treedcb2d19bee1dc8fb5152aca7b003cd96519b9d4a
parent6344985d2b9b17ea8cb2a03b5a13ba89aa53fbd5 (diff)
downloademacs-b357b9d406ef9b21d002755690ece2f39ae1dcc0.tar.gz
emacs-b357b9d406ef9b21d002755690ece2f39ae1dcc0.zip
* xdisp.c (decode_mode_spec): In "no_value" case, do NUL termination of string.
-rw-r--r--src/ChangeLog5
-rw-r--r--src/xdisp.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index ed02be8761b..d2ed2280ea0 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12000-06-16 Ken Raeburn <raeburn@gnu.org>
2
3 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
4 termination of string.
5
12000-06-16 Gerd Moellmann <gerd@gnu.org> 62000-06-16 Gerd Moellmann <gerd@gnu.org>
2 7
3 * keymap.c (describe_buffer_bindings): Add `\f\n' in front 8 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
diff --git a/src/xdisp.c b/src/xdisp.c
index 68e915f0272..2e57f620867 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -12385,7 +12385,8 @@ decode_mode_spec (w, c, field_width, precision)
12385 while (pad-- > 0) 12385 while (pad-- > 0)
12386 *p++ = ' '; 12386 *p++ = ' ';
12387 *p++ = '?'; 12387 *p++ = '?';
12388 *p = '?'; 12388 *p++ = '?';
12389 *p = '\0';
12389 return decode_mode_spec_buf; 12390 return decode_mode_spec_buf;
12390 } 12391 }
12391 } 12392 }