]> code.delx.au - gnu-emacs/commitdiff
(Fcall_interactively): When checking to see if doprnt hit
authorMiles Bader <miles@gnu.org>
Tue, 25 Jun 2002 13:00:12 +0000 (13:00 +0000)
committerMiles Bader <miles@gnu.org>
Tue, 25 Jun 2002 13:00:12 +0000 (13:00 +0000)
the end of callint_message, allow for a terminating '\0'.

src/ChangeLog
src/callint.c

index 80c1b86e6f87b921b83b29a4502125f95202e5e7..0b1b36b8f303badc5db32f7405b0882059bd1420 100644 (file)
@@ -1,3 +1,8 @@
+2002-06-25  Miles Bader  <miles@gnu.org>
+
+       * 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  <lektu@terra.es>
 
        * w32select.c: Include composite.h
index d172c118a929996a357695178764c5dfa54ca6ca..3eca790c6df51fa2b95c55637c72de8c682421ba 100644 (file)
@@ -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