From 7cb62508da3f9bf9f4b13b578c99b56f8936d6ad Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Wed, 19 Sep 2007 19:56:10 +0200 Subject: [PATCH] fix p_realloc macro --- util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util.h b/util.h index c56d7563..ca9a76cf 100644 --- a/util.h +++ b/util.h @@ -32,7 +32,7 @@ #define p_new(type, count) ((type *)xmalloc(sizeof(type) * (count))) #define p_clear(p, count) ((void)memset((p), 0, sizeof(*(p)) * (count))) -#define p_realloc(pp, count) xrealloc((void*)(pp) sizeof(**(pp) * (count))) +#define p_realloc(pp, count) xrealloc((void*)(pp), sizeof(**(pp)) * (count)) #define p_dup(p, count) xmemdup((p), sizeof(*(p)) * (count)) #ifdef __GNUC__