From ce5dc2d8d8a949ce7b485d1a917f69e7613040c8 Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Sat, 19 Jun 2004 21:11:51 +0000 Subject: [PATCH 1/1] * BUGFIX : Se estaba reservando mail la memoria, faltaba el sizeof(int) --- otros/mtf/mtf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/otros/mtf/mtf.c b/otros/mtf/mtf.c index e8b9f05..572e54c 100644 --- a/otros/mtf/mtf.c +++ b/otros/mtf/mtf.c @@ -23,7 +23,7 @@ int *jacu_mtf(char *datos, int len) int *pos; int i, size; - pos = (int*)malloc(len); + pos = (int*)malloc(len*sizeof(int)); z = jacu_buscar_z(datos, len, &size); printf("Z original = "); print_z(z, size); -- 2.43.0