aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMiles Bader2002-06-25 13:00:12 +0000
committerMiles Bader2002-06-25 13:00:12 +0000
commitc2b736ca3a341f119170c1ce849cc3a17d1f4d9e (patch)
tree9a774808022080cad5119351baaa722e9bd4a7fc /src
parentf2936ae0fdc89c4a6fb931ef99b5abd6b554a87d (diff)
downloademacs-c2b736ca3a341f119170c1ce849cc3a17d1f4d9e.tar.gz
emacs-c2b736ca3a341f119170c1ce849cc3a17d1f4d9e.zip
(Fcall_interactively): When checking to see if doprnt hit
the end of callint_message, allow for a terminating '\0'.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/callint.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 80c1b86e6f8..0b1b36b8f30 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12002-06-25 Miles Bader <miles@gnu.org>
2
3 * callint.c (Fcall_interactively): When checking to see if doprnt hit
4 the end of callint_message, allow for a terminating '\0'.
5
12002-06-24 Juanma Barranquero <lektu@terra.es> 62002-06-24 Juanma Barranquero <lektu@terra.es>
2 7
3 * w32select.c: Include composite.h 8 * w32select.c: Include composite.h
diff --git a/src/callint.c b/src/callint.c
index d172c118a92..3eca790c6df 100644
--- a/src/callint.c
+++ b/src/callint.c
@@ -464,7 +464,7 @@ supply if the command inquires which events were used to invoke it. */)
464 int nchars = doprnt (callint_message, callint_message_size, 464 int nchars = doprnt (callint_message, callint_message_size,
465 prompt1, (char *)0, 465 prompt1, (char *)0,
466 j - 1, (char **) argstrings + 1); 466 j - 1, (char **) argstrings + 1);
467 if (nchars < callint_message_size) 467 if (nchars < callint_message_size - 1)
468 break; 468 break;
469 callint_message_size *= 2; 469 callint_message_size *= 2;
470 callint_message 470 callint_message