1
Fork 0
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:
Pekka Pirinen 1999-04-27 14:08:12 +01:00
parent f12ac704f7
commit 77e4b9f5df

View file

@ -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);