]> git.llucax.com Git - z.facultad/75.06/jacu.git/blobdiff - otros/mtf/mtf.c
Bugfixes
[z.facultad/75.06/jacu.git] / otros / mtf / mtf.c
index dd0c8ab4b2b29c769bfde728ff0ee72c0bc29b48..c89bfbe43a24905d725396145595cf98646201fa 100644 (file)
@@ -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;
                }
        }