From 486448a2814cb0c4c8b9f455e51191b0c3592ccf Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicol=C3=A1s=20Dimov?= Date: Sat, 17 Apr 2004 20:44:47 +0000 Subject: [PATCH] =?utf8?q?hago=20un=20peque=C3=B1o=20fix=20para=20que=20an?= =?utf8?q?de=20un=20poco=20mejor=20cuando=20bloque=20<=20reg?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- emufs/tipo3.c | 1 + emufs/tipo3_main.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/emufs/tipo3.c b/emufs/tipo3.c index e20b7a8..c6fbd1f 100644 --- a/emufs/tipo3.c +++ b/emufs/tipo3.c @@ -517,6 +517,7 @@ void emufs_tipo3_compactar(EMUFS *emu) if (truncate(name, size)!=0) PERR("NO TRUNQUE NADA"); /*hay que truncar el fsc!!!*/ + if(emu->tam_bloquetam_reg-sizeof(EMUFS_REG_ID)) block_id = block_id/2; if (emufs_fsc_truncate(emu, block_id)!= 0) PERR("NO TURNQUE EL FSC"); free(reg); diff --git a/emufs/tipo3_main.c b/emufs/tipo3_main.c index bada15b..e94a05e 100644 --- a/emufs/tipo3_main.c +++ b/emufs/tipo3_main.c @@ -110,7 +110,7 @@ int main(int argc, char *argv[]) printf("COMPACTANDO........\n"); fp->compactar(fp); - +ver_archivo_FS(fp); for (j=1; j<8; j+=2){ b_ptr = fp->leer_registro(fp, v[j], ®_size, &err); printf("Recuperado : %s\n", b_ptr); -- 2.43.0