diff options
Diffstat (limited to 'source3/librpc/gen_ndr/cli_eventlog.c')
-rw-r--r-- | source3/librpc/gen_ndr/cli_eventlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/librpc/gen_ndr/cli_eventlog.c b/source3/librpc/gen_ndr/cli_eventlog.c index 795995f5ee..e186719d33 100644 --- a/source3/librpc/gen_ndr/cli_eventlog.c +++ b/source3/librpc/gen_ndr/cli_eventlog.c @@ -446,7 +446,7 @@ NTSTATUS rpccli_eventlog_ReadEventLogW(struct rpc_pipe_client *cli, } /* Return variables */ - memcpy(data, r.out.data, r.in.number_of_bytes); + memcpy(data, r.out.data, r.in.number_of_bytes * sizeof(*data)); *sent_size = *r.out.sent_size; *real_size = *r.out.real_size; |