msvcrt: Use correct sizeof to realloc (Coverity).
This commit is contained in:
parent
76eeca2255
commit
cd51c797f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue