diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-01-17 06:15:18 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-01-17 06:15:18 +0000 |
commit | 96c795cea7518b50a40caba34e656f056a832589 (patch) | |
tree | a75d467bddd17c322b932734549db27cf1cf56fa /source3/rpc_client | |
parent | ec879eacc263043409b584797d1e8c39258ba125 (diff) | |
download | samba-96c795cea7518b50a40caba34e656f056a832589.tar.gz samba-96c795cea7518b50a40caba34e656f056a832589.tar.bz2 samba-96c795cea7518b50a40caba34e656f056a832589.zip |
reverted this patch till I sort out the craziness with UNIHDR
(This used to be commit e3d00fa47d38cd214f5e350e1d6b30d90ed8a52c)
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_srvsvc.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/rpc_client/cli_srvsvc.c b/source3/rpc_client/cli_srvsvc.c index 013b4a077c..1bdd19620b 100644 --- a/source3/rpc_client/cli_srvsvc.c +++ b/source3/rpc_client/cli_srvsvc.c @@ -142,11 +142,11 @@ WERROR cli_srvsvc_net_share_enum(struct cli_state *cli, TALLOC_CTX *mem_ctx, s = unistr2_tdup(mem_ctx, &r.ctr.share.info1[i].info_1_str.uni_netname); if (s) - init_unistr2(&info1->info_1_str.uni_netname, s); + init_unistr2(&info1->info_1_str.uni_netname, s, strlen(s) + 1); s = unistr2_tdup(mem_ctx, &r.ctr.share.info1[i].info_1_str.uni_remark); if (s) - init_unistr2(&info1->info_1_str.uni_remark, s); + init_unistr2(&info1->info_1_str.uni_remark, s, strlen(s) + 1); } @@ -170,19 +170,19 @@ WERROR cli_srvsvc_net_share_enum(struct cli_state *cli, TALLOC_CTX *mem_ctx, s = unistr2_tdup(mem_ctx, &r.ctr.share.info2[i].info_2_str.uni_netname); if (s) - init_unistr2(&info2->info_2_str.uni_netname, s); + init_unistr2(&info2->info_2_str.uni_netname, s, strlen(s) + 1); s = unistr2_tdup(mem_ctx, &r.ctr.share.info2[i].info_2_str.uni_remark); if (s) - init_unistr2(&info2->info_2_str.uni_remark, s); + init_unistr2(&info2->info_2_str.uni_remark, s, strlen(s) + 1); s = unistr2_tdup(mem_ctx, &r.ctr.share.info2[i].info_2_str.uni_path); if (s) - init_unistr2(&info2->info_2_str.uni_path, s); + init_unistr2(&info2->info_2_str.uni_path, s, strlen(s) + 1); s = unistr2_tdup(mem_ctx, &r.ctr.share.info2[i].info_2_str.uni_passwd); if (s) - init_unistr2(&info2->info_2_str.uni_passwd, s); + init_unistr2(&info2->info_2_str.uni_passwd, s, strlen(s) + 1); } break; } @@ -388,11 +388,11 @@ WERROR cli_srvsvc_net_file_enum(struct cli_state *cli, TALLOC_CTX *mem_ctx, s = unistr2_tdup(mem_ctx, &r.ctr.file.info3[i].info_3_str.uni_path_name); if (s) - init_unistr2(&info3->info_3_str.uni_path_name, s); + init_unistr2(&info3->info_3_str.uni_path_name, s, strlen(s) + 1); s = unistr2_tdup(mem_ctx, &r.ctr.file.info3[i].info_3_str.uni_user_name); if (s) - init_unistr2(&info3->info_3_str.uni_user_name, s); + init_unistr2(&info3->info_3_str.uni_user_name, s, strlen(s) + 1); } |