diff options
| author | Miles Bader | 2002-06-25 13:00:12 +0000 |
|---|---|---|
| committer | Miles Bader | 2002-06-25 13:00:12 +0000 |
| commit | c2b736ca3a341f119170c1ce849cc3a17d1f4d9e (patch) | |
| tree | 9a774808022080cad5119351baaa722e9bd4a7fc /src | |
| parent | f2936ae0fdc89c4a6fb931ef99b5abd6b554a87d (diff) | |
| download | emacs-c2b736ca3a341f119170c1ce849cc3a17d1f4d9e.tar.gz emacs-c2b736ca3a341f119170c1ce849cc3a17d1f4d9e.zip | |
(Fcall_interactively): When checking to see if doprnt hit
the end of callint_message, allow for a terminating '\0'.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/callint.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 80c1b86e6f8..0b1b36b8f30 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-06-25 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * callint.c (Fcall_interactively): When checking to see if doprnt hit | ||
| 4 | the end of callint_message, allow for a terminating '\0'. | ||
| 5 | |||
| 1 | 2002-06-24 Juanma Barranquero <lektu@terra.es> | 6 | 2002-06-24 Juanma Barranquero <lektu@terra.es> |
| 2 | 7 | ||
| 3 | * w32select.c: Include composite.h | 8 | * w32select.c: Include composite.h |
diff --git a/src/callint.c b/src/callint.c index d172c118a92..3eca790c6df 100644 --- a/src/callint.c +++ b/src/callint.c | |||
| @@ -464,7 +464,7 @@ supply if the command inquires which events were used to invoke it. */) | |||
| 464 | int nchars = doprnt (callint_message, callint_message_size, | 464 | int nchars = doprnt (callint_message, callint_message_size, |
| 465 | prompt1, (char *)0, | 465 | prompt1, (char *)0, |
| 466 | j - 1, (char **) argstrings + 1); | 466 | j - 1, (char **) argstrings + 1); |
| 467 | if (nchars < callint_message_size) | 467 | if (nchars < callint_message_size - 1) |
| 468 | break; | 468 | break; |
| 469 | callint_message_size *= 2; | 469 | callint_message_size *= 2; |
| 470 | callint_message | 470 | callint_message |