From ea6b2c65bc3ce3bf404a9f142d664aa0bbbfe3a0 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Tue, 20 May 2014 04:37:38 +0200 Subject: [PATCH] fix void* pointer arithmetic in string_strchr.c --- src/functional/string_strchr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/functional/string_strchr.c b/src/functional/string_strchr.c index 883db91..718649a 100644 --- a/src/functional/string_strchr.c +++ b/src/functional/string_strchr.c @@ -10,7 +10,7 @@ static void *aligned(void *p) static void *aligncpy(void *p, size_t len, size_t a) { - return memcpy(aligned(buf)+a, p, len); + return memcpy((char*)aligned(buf)+a, p, len); } #define N(s, c) { \ -- 2.11.4.GIT