X-Git-Url: https://git.llucax.com/z.facultad/75.06/jacu.git/blobdiff_plain/9e5f9df91ca96fb4cf179841cea17c9b4fb0f99c..5cde90ce82c099520a3cfe2f0bc533b65216137a:/src/blocksorting/bs.c diff --git a/src/blocksorting/bs.c b/src/blocksorting/bs.c index 64ea8ab..9463b43 100644 --- a/src/blocksorting/bs.c +++ b/src/blocksorting/bs.c @@ -100,8 +100,8 @@ void bs_solve(char *in, char *out, t_BlockSort *bs, unsigned long int *k, unsign (*k) = generar_salida(in, bs, out); /* Guardo el k y el tamaƱo en el array */ - memcpy(out, k, sizeof(unsigned long int)); - memcpy(out+sizeof(unsigned long int), &leido, sizeof(unsigned long int)); + memcpy(out, &leido, sizeof(unsigned long int)); + memcpy(out+sizeof(unsigned long int), k, sizeof(unsigned long int)); bs->len = l; }