X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/551c1b8346a4c4a5128a7cfe4d4804bf40b4a0d2..63781d0c9c5157db0302a61ed5cc2fd805758476:/src/mtf/mtf.c?ds=sidebyside diff --git a/src/mtf/mtf.c b/src/mtf/mtf.c index 6326b5e..bdb423c 100644 --- a/src/mtf/mtf.c +++ b/src/mtf/mtf.c @@ -24,16 +24,13 @@ char *jacu_mtf(char *datos, int len, char **_z, int *z_len) pos = (char *)malloc(len*sizeof(char)); z = jacu_buscar_z(datos, len, &size); - (*_z) = jacu_buscar_z(datos, len, &size); - + *_z = (char*)malloc(len*sizeof(char)); + memcpy(*_z, z, len*sizeof(char)); for(i=0; i