X-Git-Url: https://git.llucax.com/z.facultad/75.06/emufs.git/blobdiff_plain/c17ce9e5c76c4de8f575b23c68146bf9076e6bb5..af17bf78b31b1cdb1ed6823344bb945add1700e2:/tipo3/param_cte.c diff --git a/tipo3/param_cte.c b/tipo3/param_cte.c index b5787b6..5ef131f 100644 --- a/tipo3/param_cte.c +++ b/tipo3/param_cte.c @@ -258,7 +258,7 @@ int buscar_lugar(EMUFS *emu, unsigned long tam, int *fs) reg.block = -1; *fs = emu->tam_bloque; while( !feof(f_block_free) ){ - fread(®,sizeof(BLOCK_FREE_T),1,f_block_free); + if (fread(®,sizeof(BLOCK_FREE_T),1,f_block_free) != 1) continue; if ( reg.free_space >= tam ) break; else {