Commit c2b736ca authored by Miles Bader's avatar Miles Bader

(Fcall_interactively): When checking to see if doprnt hit

the end of callint_message, allow for a terminating '\0'.
parent f2936ae0
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
......
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment