From: Ricardo Markiewicz Date: Sat, 19 Jun 2004 21:11:51 +0000 (+0000) Subject: * BUGFIX : Se estaba reservando mail la memoria, faltaba el sizeof(int) X-Git-Tag: svn_import~152 X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/commitdiff_plain/ce5dc2d8d8a949ce7b485d1a917f69e7613040c8?ds=sidebyside;hp=50b99b153d4e8d299e999eca83678ae23b2accbc * BUGFIX : Se estaba reservando mail la memoria, faltaba el sizeof(int) --- 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);