Commit cd51c797 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

msvcrt: Use correct sizeof to realloc (Coverity).

parent 76eeca22
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment