X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/d02652e3b6a0c912464d28cd6cd966c26ac4dc37..4c52c296c61446bfe960f6ca64274d8245a92a06:/otros/mtf/mtf.c?ds=inline diff --git a/otros/mtf/mtf.c b/otros/mtf/mtf.c index dd0c8ab..c89bfbe 100644 --- a/otros/mtf/mtf.c +++ b/otros/mtf/mtf.c @@ -51,7 +51,7 @@ char *jacu_buscar_z(char* datos, int len, int *size) if( no_pertenece(z, datos[i]) ){ j++; z = realloc(z, j*sizeof(char)); - z[j]=datos[i]; + z[j-1]=datos[i]; *size = j; } }