diff options
author | Matthew Chapman <matty@samba.org> | 1999-03-23 13:45:42 +0000 |
---|---|---|
committer | Matthew Chapman <matty@samba.org> | 1999-03-23 13:45:42 +0000 |
commit | 803100197bdd9d221a5807b3ca279ac6769e2e26 (patch) | |
tree | 30518d5cd78a1c75d16651a618cef123ffdf3ae5 /source3/rpc_parse/parse_reg.c | |
parent | 5380636c4e29268adf214634ed8f36cef6f1a35b (diff) | |
download | samba-803100197bdd9d221a5807b3ca279ac6769e2e26.tar.gz samba-803100197bdd9d221a5807b3ca279ac6769e2e26.tar.bz2 samba-803100197bdd9d221a5807b3ca279ac6769e2e26.zip |
Another UNICODE issue - this time BUFFER2 was being transmitted incorrectly.
(This used to be commit 73730f6004c7eca1d852a569dede94095a396dca)
Diffstat (limited to 'source3/rpc_parse/parse_reg.c')
-rw-r--r-- | source3/rpc_parse/parse_reg.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source3/rpc_parse/parse_reg.c b/source3/rpc_parse/parse_reg.c index 5512f78499..ce0b7fff87 100644 --- a/source3/rpc_parse/parse_reg.c +++ b/source3/rpc_parse/parse_reg.c @@ -761,16 +761,17 @@ void make_reg_r_info(REG_R_INFO *r_r, uint32 level, char *os_type, uint32 status) { - char buf[512]; int len; - len = ascii_to_unibuf(buf, os_type, sizeof(buf)-2) - buf; + if (r_r == NULL || os_type == NULL) return; + + len = strlen(os_type) * 2; r_r->ptr1 = 1; r_r->level = level; r_r->ptr_type = 1; - make_buffer2(&(r_r->uni_type), buf, len); + make_buffer2(&(r_r->uni_type), os_type, len); r_r->ptr2 = 1; r_r->unknown_0 = len; |