X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/05679d4ab53a25befb2d8f2c886324c1514134c8..66f873a3de4adb65bbad6fb09cd57272216d332f:/src/mtf/mtf.c diff --git a/src/mtf/mtf.c b/src/mtf/mtf.c index 228fd8a..5bf5b39 100644 --- a/src/mtf/mtf.c +++ b/src/mtf/mtf.c @@ -24,7 +24,7 @@ unsigned char *jacu_mtf(unsigned char *datos, int len, unsigned char **_z, int * pos = (unsigned char *)malloc(len*sizeof(unsigned char)); z = jacu_buscar_z(datos, len, &size); - *_z = (unsigned char*)malloc(len*sizeof(unsigned char)); + *_z = (unsigned char*)malloc(size*sizeof(unsigned char)); memcpy(*_z, z, size*sizeof(unsigned char)); for(i=0; i