msvcrt: Use correct sizeof to realloc (Coverity).

This commit is contained in:
Marcus Meissner 2011-10-18 04:48:33 +02:00 committed by Alexandre Julliard
parent 76eeca2255
commit cd51c797f3
1 changed files with 1 additions and 1 deletions

View File

@ -83,7 +83,7 @@ MSVCRT__onexit_t CDECL __dllonexit(MSVCRT__onexit_t func, MSVCRT__onexit_t **sta
if (++len <= 0)
return NULL;
tmp = MSVCRT_realloc(*start, len * sizeof(tmp));
tmp = MSVCRT_realloc(*start, len * sizeof(*tmp));
if (!tmp)
return NULL;
*start = tmp;