Alexandre Julliard : server: Fix allocation size (Coverity).
Alexandre Julliard
julliard at winehq.org
Tue Oct 3 15:39:52 CDT 2017
Module: wine
Branch: master
Commit: 541e7ba79a0084d51dced4e14f2d4af0217f2abf
URL: http://source.winehq.org/git/wine.git/?a=commit;h=541e7ba79a0084d51dced4e14f2d4af0217f2abf
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Oct 3 10:28:50 2017 +0200
server: Fix allocation size (Coverity).
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
server/mapping.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/server/mapping.c b/server/mapping.c
index 57641d1..0e4143f 100644
--- a/server/mapping.c
+++ b/server/mapping.c
@@ -600,7 +600,7 @@ static struct ranges *create_ranges(void)
if (!ranges) return NULL;
ranges->count = 0;
ranges->max = 8;
- if (!(ranges->ranges = mem_alloc( ranges->max * sizeof(ranges->ranges) )))
+ if (!(ranges->ranges = mem_alloc( ranges->max * sizeof(*ranges->ranges) )))
{
release_object( ranges );
return NULL;
More information about the wine-cvs
mailing list