From beb19da53fc59bd3c09e9967dd243fd963b43382 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 5 Sep 2008 15:20:59 -0700 Subject: Fix "warning: pointer of type 'void *' used in arithmetic". Jeremy. (This used to be commit 2d95ea38a2f1ead37121fcc036c21a7f20ff41f9) --- source3/rpc_parse/parse_prs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_parse') diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c index b3deb80c5df..5eb6c31ee6d 100644 --- a/source3/rpc_parse/parse_prs.c +++ b/source3/rpc_parse/parse_prs.c @@ -406,7 +406,7 @@ bool prs_append_some_data(prs_struct *dst, void *src_base, uint32_t start, return false; } - memcpy(&dst->data_p[dst->data_offset], src_base + start, (size_t)len); + memcpy(&dst->data_p[dst->data_offset], ((char *)src_base) + start, (size_t)len); dst->data_offset += len; return true; } -- cgit