diff src/callint.c @ 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 ce01a38706ee
children 1fb8f75062c6
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