From 776f9530188a0313c258614b58f0b54eb2c99c56 Mon Sep 17 00:00:00 2001 From: Leandro Lucarella Date: Sun, 11 Apr 2004 04:58:13 +0000 Subject: [PATCH] Bugfix. --- emufs/idx.c | 1 + 1 file changed, 1 insertion(+) diff --git a/emufs/idx.c b/emufs/idx.c index 6cf562e..35a01f0 100644 --- a/emufs/idx.c +++ b/emufs/idx.c @@ -86,6 +86,7 @@ EMUFS_REG_ID emufs_idx_buscar_mayor_id_libre(EMUFS* emu, int* err) while (!feof(f_idx)) { /* Me aseguro de leer la cantidad de bytes correcta */ if (fread(®, sizeof(EMUFS_IDX), 1, f_idx) != 1) { + if (feof(f_idx)) break; /* No leyĆ³ por EOF */ PERR("Error al leer registros de idx"); *err = 3; /* EMUFS_ERROR_FILE_READ */ return EMUFS_NOT_FOUND; -- 2.43.0