From a51e2522aeab2605e0db7bead113e557d5dccd86 Mon Sep 17 00:00:00 2001 From: germeier Date: Tue, 15 Jul 2003 08:26:37 +0000 Subject: further fixes --- libmpio/src/fat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmpio/src/fat.c') diff --git a/libmpio/src/fat.c b/libmpio/src/fat.c index 0bd05d9..36ac6ac 100644 --- a/libmpio/src/fat.c +++ b/libmpio/src/fat.c @@ -1,5 +1,5 @@ /* - * $Id: fat.c,v 1.3 2003/04/27 12:08:21 germeier Exp $ + * $Id: fat.c,v 1.4 2003/07/15 08:26:37 germeier Exp $ * * libmpio - a library for accessing Digit@lways MPIO players * Copyright (C) 2002, 2003 Markus Germeier @@ -630,7 +630,7 @@ mpio_fat_internal_find_fileindex(mpio_t *m) mpio_fatentry_t *f; mpio_smartmedia_t *sm = &m->internal; BYTE index[256]; - BYTE found; /* hmm, ... */ + WORD found; /* hmm, ... */ memset(index, 1, 256); @@ -646,7 +646,7 @@ mpio_fat_internal_find_fileindex(mpio_t *m) while((found<256) && (!index[found])) found++; - if (found==256) + if (found>=256) { debug("Oops, did not find a new fileindex!\n" "This should never happen, aborting now!, Sorry!\n"); -- cgit v1.2.3