changeset 46006:6d5d3dd50de6

(Fcall_interactively): When checking to see if doprnt hit the end of callint_message, allow for a terminating '\0'.
author Miles Bader <miles@gnu.org>
date Tue, 25 Jun 2002 12:58:54 +0000
parents 826fff7bded9
children d34b2d6f0c7a
files src/callint.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/callint.c	Tue Jun 25 09:54:48 2002 +0000
+++ b/src/callint.c	Tue Jun 25 12:58:54 2002 +0000
@@ -464,7 +464,7 @@
 	  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