summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_svcctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/cli_svcctl.c')
-rw-r--r--source3/librpc/gen_ndr/cli_svcctl.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/source3/librpc/gen_ndr/cli_svcctl.c b/source3/librpc/gen_ndr/cli_svcctl.c
index 93cef23b00..406a4a8b4b 100644
--- a/source3/librpc/gen_ndr/cli_svcctl.c
+++ b/source3/librpc/gen_ndr/cli_svcctl.c
@@ -230,7 +230,7 @@ NTSTATUS rpccli_svcctl_QueryServiceObjectSecurity(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(buffer, r.out.buffer, r.in.buffer_size);
+ memcpy(buffer, r.out.buffer, r.in.buffer_size * sizeof(*buffer));
*needed = *r.out.needed;
/* Return result */
@@ -699,7 +699,7 @@ NTSTATUS rpccli_svcctl_EnumDependentServicesW(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(service_status, r.out.service_status, r.in.buf_size);
+ memcpy(service_status, r.out.service_status, r.in.buf_size * sizeof(*service_status));
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
@@ -757,7 +757,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusW(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(service, r.out.service, r.in.buf_size);
+ memcpy(service, r.out.service, r.in.buf_size * sizeof(*service));
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if (resume_handle && r.out.resume_handle) {
@@ -911,7 +911,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigW(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(query, r.out.query, r.in.buf_size);
+ memcpy(query, r.out.query, r.in.buf_size * sizeof(*query));
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -1412,7 +1412,7 @@ NTSTATUS rpccli_svcctl_EnumServicesStatusA(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(service, r.out.service, r.in.buf_size);
+ memcpy(service, r.out.service, r.in.buf_size * sizeof(*service));
*bytes_needed = *r.out.bytes_needed;
*services_returned = *r.out.services_returned;
if (resume_handle && r.out.resume_handle) {
@@ -1564,7 +1564,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfigA(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(query, r.out.query, r.in.buf_size);
+ memcpy(query, r.out.query, r.in.buf_size * sizeof(*query));
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -2000,7 +2000,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2A(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(buffer, r.out.buffer, r.in.buf_size);
+ memcpy(buffer, r.out.buffer, r.in.buf_size * sizeof(*buffer));
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -2052,7 +2052,7 @@ NTSTATUS rpccli_svcctl_QueryServiceConfig2W(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(buffer, r.out.buffer, r.in.buf_size);
+ memcpy(buffer, r.out.buffer, r.in.buf_size * sizeof(*buffer));
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -2104,7 +2104,7 @@ NTSTATUS rpccli_svcctl_QueryServiceStatusEx(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(buffer, r.out.buffer, r.in.buf_size);
+ memcpy(buffer, r.out.buffer, r.in.buf_size * sizeof(*buffer));
*bytes_needed = *r.out.bytes_needed;
/* Return result */
@@ -2164,7 +2164,7 @@ NTSTATUS rpccli_EnumServicesStatusExA(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(services, r.out.services, r.in.buf_size);
+ memcpy(services, r.out.services, r.in.buf_size * sizeof(*services));
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if (resume_handle && r.out.resume_handle) {
@@ -2229,7 +2229,7 @@ NTSTATUS rpccli_EnumServicesStatusExW(struct rpc_pipe_client *cli,
}
/* Return variables */
- memcpy(services, r.out.services, r.in.buf_size);
+ memcpy(services, r.out.services, r.in.buf_size * sizeof(*services));
*bytes_needed = *r.out.bytes_needed;
*service_returned = *r.out.service_returned;
if (resume_handle && r.out.resume_handle) {