From 160c6ec5eb369d309350e9fdf588e29d4ea215bd Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 23 Apr 2000 15:38:16 +0200 Subject: Implemented replay progress display --- tools.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tools.c') diff --git a/tools.c b/tools.c index e356e0fd..d12ac495 100644 --- a/tools.c +++ b/tools.c @@ -4,7 +4,7 @@ * See the main source file 'osm.c' for copyright information and * how to reach the author. * - * $Id: tools.c 1.3 2000/04/15 15:10:05 kls Exp $ + * $Id: tools.c 1.4 2000/04/23 15:30:17 kls Exp $ */ #define _GNU_SOURCE @@ -40,8 +40,7 @@ char readchar(int filedes) bool readint(int filedes, int &n) { - //XXX timeout!! - return read(filedes, &n, sizeof(n)); + return read(filedes, &n, sizeof(n)) == sizeof(n); } char *readline(FILE *f) -- cgit v1.2.3