preloader: Fix moving of auxiliary values.

This commit is contained in:
Harald Hoyer 2010-07-29 12:02:06 +02:00 committed by Alexandre Julliard
parent f0de2d9d25
commit 2bea45dd0a
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ static void set_auxiliary_values( ElfW(auxv_t) *av, const ElfW(auxv_t) *new_av,
}
else if (new_count < delete_count) /* get rid of unused values */
{
int len = (char *)(av + av_count + 1) - dst;
int len = (char *)(av + av_count + 1) - src;
for (i = len - 1; i >= 0; i--) dst[i] = src[i];
}
*stack = dst;