diff options
author | Matthew Chapman <matty@samba.org> | 1999-02-15 05:33:30 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-02-15 05:33:30 +0000 |
commit | ce24191939b82985d09eabe945199f38b0fea486 (patch) | |
tree | ac9a74cd6c71f53b7524f91b5d080c3198140bae /source/rpc_parse/parse_rpc.c | |
parent | b314430b2102e47529b093b1b98b5b6f3b6ea74f (diff) | |
download | samba-ce24191939b82985d09eabe945199f38b0fea486.tar.gz |
Always null-terminate strings.
Also some string length and sizeof(pointer) corrections.
Diffstat (limited to 'source/rpc_parse/parse_rpc.c')
-rw-r--r-- | source/rpc_parse/parse_rpc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_parse/parse_rpc.c b/source/rpc_parse/parse_rpc.c index c4a7e358951..9716b35b78a 100644 --- a/source/rpc_parse/parse_rpc.c +++ b/source/rpc_parse/parse_rpc.c @@ -707,9 +707,9 @@ void make_rpc_auth_ntlmssp_resp(RPC_AUTH_NTLMSSP_RESP *rsp, if (IS_BITS_SET_ALL(neg_flags, NTLMSSP_NEGOTIATE_UNICODE)) { - ascii_to_unibuf(rsp->domain, domain, sizeof(rsp->domain)); - ascii_to_unibuf(rsp->user , user , sizeof(rsp->user )); - ascii_to_unibuf(rsp->wks , wks , sizeof(rsp->wks )); + ascii_to_unibuf(rsp->domain, domain, sizeof(rsp->domain)-2); + ascii_to_unibuf(rsp->user , user , sizeof(rsp->user )-2); + ascii_to_unibuf(rsp->wks , wks , sizeof(rsp->wks )-2); } else { |