(Fcall_interactively): When checking to see if doprnt hit
the end of callint_message, allow for a terminating '\0'.
This commit is contained in:
parent
f2936ae0fd
commit
c2b736ca3a
2 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue