From: Miles Bader Date: Tue, 25 Jun 2002 13:00:12 +0000 (+0000) Subject: (Fcall_interactively): When checking to see if doprnt hit X-Git-Tag: ttn-vms-21-2-B4~14453 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c2b736ca3a341f119170c1ce849cc3a17d1f4d9e;p=emacs.git (Fcall_interactively): When checking to see if doprnt hit the end of callint_message, allow for a terminating '\0'. --- diff --git a/src/ChangeLog b/src/ChangeLog index 80c1b86e6f8..0b1b36b8f30 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2002-06-25 Miles Bader + + * callint.c (Fcall_interactively): When checking to see if doprnt hit + the end of callint_message, allow for a terminating '\0'. + 2002-06-24 Juanma Barranquero * 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. */) int nchars = doprnt (callint_message, callint_message_size, prompt1, (char *)0, j - 1, (char **) argstrings + 1); - if (nchars < callint_message_size) + if (nchars < callint_message_size - 1) break; callint_message_size *= 2; callint_message