server: Fix allocation size (Coverity).

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alexandre Julliard 2017-10-03 10:28:50 +02:00
parent c6ac658019
commit 541e7ba79a
1 changed files with 1 additions and 1 deletions

View File

@ -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;