*fs = emu->tam_bloque;
while( !feof(f_fsc) ){
if (fread(®,sizeof(EMUFS_FSC),1,f_fsc) != 1) continue;
- if ( reg.free_space >= tam+sizeof(int))
+ if (reg.free_space >= tam) {
break;
- else {
+ } else {
reg.block = -1;
*fs = emu->tam_bloque;
}
fclose(f_fsc);
return reg.free_space;
}
+