From 52a7bb46366e7b656852c1f8c112d5f345753ec4 Mon Sep 17 00:00:00 2001 From: Sebastien GODARD Date: Tue, 28 Feb 2023 08:56:36 +0100 Subject: [PATCH] sa_common.c: Don't use (void *) pointer in calculation Signed-off-by: Sebastien GODARD --- sa_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sa_common.c b/sa_common.c index 7c3e222..1991e68 100644 --- a/sa_common.c +++ b/sa_common.c @@ -539,7 +539,7 @@ void reallocate_all_buffers(struct activity *a, __nr_t nr_min) (size_t) a->msize * nr_realloc * (size_t) a->nr2); /* Init additional space which has been allocated */ if (a->nr_allocated) { - memset(a->buf[j] + a->msize * a->nr_allocated * a->nr2, 0, + memset((char *) a->buf[j] + a->msize * a->nr_allocated * a->nr2, 0, (size_t) a->msize * (size_t) (nr_realloc - a->nr_allocated) * (size_t) a->nr2); } } -- 2.40.0