From c05c5dba8a3ae832df4d2b1c58761089147288f1 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 15 Apr 2008 16:11:10 +0200 Subject: Regenerate DCE/RPC client code after fixing memcpy() length bug in pidl. (This used to be commit ac4c63d999f9ae61428bcdae400d127459896d6c) --- source3/librpc/gen_ndr/cli_ntsvcs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/librpc/gen_ndr/cli_ntsvcs.c') diff --git a/source3/librpc/gen_ndr/cli_ntsvcs.c b/source3/librpc/gen_ndr/cli_ntsvcs.c index 864caef1f3..edc0c55554 100644 --- a/source3/librpc/gen_ndr/cli_ntsvcs.c +++ b/source3/librpc/gen_ndr/cli_ntsvcs.c @@ -611,7 +611,7 @@ NTSTATUS rpccli_PNP_GetDeviceRegProp(struct rpc_pipe_client *cli, /* Return variables */ *unknown1 = *r.out.unknown1; - memcpy(buffer, r.out.buffer, *r.in.buffer_size); + memcpy(buffer, r.out.buffer, *r.in.buffer_size * sizeof(*buffer)); *buffer_size = *r.out.buffer_size; *needed = *r.out.needed; -- cgit