From 4b6af5d53faa7ed8250eebaeb6b91f2e5ac58dc2 Mon Sep 17 00:00:00 2001 From: Simon Kelley Date: Tue, 1 Mar 2016 17:00:26 +0000 Subject: [PATCH] Fix pointer declaration botch. --- src/rrfilter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rrfilter.c b/src/rrfilter.c index 38afbee..e42d621 100644 --- a/src/rrfilter.c +++ b/src/rrfilter.c @@ -323,12 +323,12 @@ int expand_workspace(unsigned char ***wkspc, int *szp, int new) new += 5; - if (!(p = whine_malloc(new * sizeof(unsigned char **)))) + if (!(p = whine_malloc(new * sizeof(unsigned char *)))) return 0; if (old != 0 && *wkspc) { - memcpy(p, *wkspc, old * sizeof(unsigned char **)); + memcpy(p, *wkspc, old * sizeof(unsigned char *)); free(*wkspc); }