diff options
-rw-r--r-- | source3/rpc_server/srv_echo_nt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_echo_nt.c b/source3/rpc_server/srv_echo_nt.c index 08d54ceba4..426cd2fded 100644 --- a/source3/rpc_server/srv_echo_nt.c +++ b/source3/rpc_server/srv_echo_nt.c @@ -50,7 +50,7 @@ void _echo_EchoData(pipes_struct *p, struct echo_EchoData *r) return; } - r->out.out_data = TALLOC(p->mem_ctx, r->in.len); + r->out.out_data = TALLOC_ARRAY(p->mem_ctx, uint8, r->in.len); memcpy( r->out.out_data, r->in.in_data, r->in.len ); return; } @@ -78,7 +78,7 @@ void _echo_SourceData(pipes_struct *p, struct echo_SourceData *r) return; } - r->out.data = TALLOC(p->mem_ctx, r->in.len ); + r->out.data = TALLOC_ARRAY(p->mem_ctx, uint8, r->in.len ); for (i = 0; i < r->in.len; i++ ) { r->out.data[i] = i & 0xff; |