[PATCH] msvcrt: Use correct sizeof to realloc (Coverity)
Marcus Meissner
meissner at suse.de
Mon Oct 17 21:48:33 CDT 2011
CID 3788
Ciao, Marcus
---
dlls/msvcrt/exit.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/msvcrt/exit.c b/dlls/msvcrt/exit.c
index 19b9fb4..fd22e62 100644
--- a/dlls/msvcrt/exit.c
+++ b/dlls/msvcrt/exit.c
@@ -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;
--
1.7.1
More information about the wine-patches
mailing list