mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-19 01:10:57 -08:00
Fix termination
Copied from Perforce Change: 20754 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
f12ac704f7
commit
77e4b9f5df
1 changed files with 4 additions and 2 deletions
|
|
@ -1,7 +1,7 @@
|
|||
/* impl.c.eventcnv: Simple event log converter
|
||||
* Copyright (C) 1999 Harlequin Group plc. All rights reserved.
|
||||
*
|
||||
* $HopeName$
|
||||
* $HopeName: MMsrc!eventcnv.c(trunk.1) $
|
||||
*/
|
||||
|
||||
#include "config.h"
|
||||
|
|
@ -391,7 +391,7 @@ static Res readLog(char *filename)
|
|||
error("Unknown style code '%c'", style);
|
||||
}
|
||||
|
||||
while (!feof(input)) {
|
||||
while (TRUE) {
|
||||
char *eventFormat;
|
||||
int argCount, i;
|
||||
Event event;
|
||||
|
|
@ -399,6 +399,8 @@ static Res readLog(char *filename)
|
|||
Res res;
|
||||
|
||||
res = EventRead(&event, input);
|
||||
if (res != ResOK) error("Truncated file");
|
||||
if (event == NULL) break;
|
||||
eventTime = event->any.clock;
|
||||
code = EventGetCode(event);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue