From 541e7ba79a0084d51dced4e14f2d4af0217f2abf Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Tue, 3 Oct 2017 10:28:50 +0200 Subject: [PATCH] server: Fix allocation size (Coverity). Signed-off-by: Alexandre Julliard --- server/mapping.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/mapping.c b/server/mapping.c index 57641d13787..0e4143f80ca 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;