X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/a9564429c158d89dfc16a0ba3f2df2993de1d12f..ce5dc2d8d8a949ce7b485d1a917f69e7613040c8:/otros/mtf/mtf.c?ds=sidebyside 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);