summaryrefslogtreecommitdiff
path: root/source3/rpc_parse
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2008-09-05 15:20:59 -0700
committerJeremy Allison <jra@samba.org>2008-09-05 15:20:59 -0700
commitbeb19da53fc59bd3c09e9967dd243fd963b43382 (patch)
treec5d9490b945bf8787707f4c4441593552a373fdf /source3/rpc_parse
parentce9d89678111d95b6f94576dba934b10601e6e13 (diff)
downloadsamba-beb19da53fc59bd3c09e9967dd243fd963b43382.tar.gz
samba-beb19da53fc59bd3c09e9967dd243fd963b43382.tar.bz2
samba-beb19da53fc59bd3c09e9967dd243fd963b43382.zip
Fix "warning: pointer of type 'void *' used in arithmetic".
Jeremy. (This used to be commit 2d95ea38a2f1ead37121fcc036c21a7f20ff41f9)
Diffstat (limited to 'source3/rpc_parse')
-rw-r--r--source3/rpc_parse/parse_prs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_parse/parse_prs.c b/source3/rpc_parse/parse_prs.c
index b3deb80c5d..5eb6c31ee6 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;
}