Marcus Meissner : msvcrt: Use correct sizeof to realloc (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Oct 18 12:56:28 CDT 2011
Module: wine
Branch: master
Commit: cd51c797f3cf2672423b426dd7297fff257dc503
URL: http://source.winehq.org/git/wine.git/?a=commit;h=cd51c797f3cf2672423b426dd7297fff257dc503
Author: Marcus Meissner <meissner at suse.de>
Date: Tue Oct 18 04:48:33 2011 +0200
msvcrt: Use correct sizeof to realloc (Coverity).
---
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;
More information about the wine-cvs
mailing list