From: Leandro Lucarella Date: Sat, 26 Jun 2004 06:38:26 +0000 (+0000) Subject: Cambio sugerido por nico. X-Git-Tag: svn_import~56 X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/commitdiff_plain/05679d4ab53a25befb2d8f2c886324c1514134c8?ds=inline Cambio sugerido por nico. --- diff --git a/src/mtf/mtf.c b/src/mtf/mtf.c index 460b790..228fd8a 100644 --- a/src/mtf/mtf.c +++ b/src/mtf/mtf.c @@ -25,7 +25,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)); - memcpy(*_z, z, len*sizeof(unsigned char)); + memcpy(*_z, z, size*sizeof(unsigned char)); for(i=0; i