summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-03 18:37:05 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-03 18:37:05 +0000
commitba4135aaf87a34ececb30c1de93f955bc8daa40d (patch)
treecf93cf439fb847424e8efaa4a5147274929c03b6
parent01e04614c7c466fdbdc398c782acaa931965f925 (diff)
downloadsamba-ba4135aaf87a34ececb30c1de93f955bc8daa40d.tar.gz
samba-ba4135aaf87a34ececb30c1de93f955bc8daa40d.tar.bz2
samba-ba4135aaf87a34ececb30c1de93f955bc8daa40d.zip
fix to some of the unicode string handling. there are others pending
in non-critical areas. (This used to be commit 6da2e15272e4a6a9994c36fc465b6115f95ac5bd)
-rw-r--r--source3/rpc_parse/parse_srv.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index adc4249072..56b8be2acb 100644
--- a/source3/rpc_parse/parse_srv.c
+++ b/source3/rpc_parse/parse_srv.c
@@ -37,8 +37,8 @@ void make_srv_share_info1_str(SH_INFO_1_STR *sh1, char *net_name, char *remark)
DEBUG(5,("make_srv_share_info1_str\n"));
- make_unistr2(&(sh1->uni_netname), net_name, strlen(net_name));
- make_unistr2(&(sh1->uni_remark ), remark , strlen(remark ));
+ make_unistr2(&(sh1->uni_netname), net_name, strlen(net_name)+1);
+ make_unistr2(&(sh1->uni_remark ), remark , strlen(remark )+1);
}
/*******************************************************************
@@ -380,7 +380,7 @@ void make_srv_sess_info0_str(SESS_INFO_0_STR *ss0, char *name)
DEBUG(5,("make_srv_sess_info0_str\n"));
- make_unistr2(&(ss0->uni_name), name, strlen(name));
+ make_unistr2(&(ss0->uni_name), name, strlen(name)+1);
}
/*******************************************************************
@@ -478,8 +478,8 @@ void make_srv_sess_info1_str(SESS_INFO_1_STR *ss1, char *name, char *user)
DEBUG(5,("make_srv_sess_info1_str\n"));
- make_unistr2(&(ss1->uni_name), name, strlen(name));
- make_unistr2(&(ss1->uni_user), name, strlen(user));
+ make_unistr2(&(ss1->uni_name), name, strlen(name)+1);
+ make_unistr2(&(ss1->uni_user), name, strlen(user)+1);
}
/*******************************************************************
@@ -777,8 +777,8 @@ void make_srv_conn_info1_str(CONN_INFO_1_STR *ss1, char *usr_name, char *net_nam
DEBUG(5,("make_srv_conn_info1_str\n"));
- make_unistr2(&(ss1->uni_usr_name), usr_name, strlen(usr_name));
- make_unistr2(&(ss1->uni_net_name), net_name, strlen(net_name));
+ make_unistr2(&(ss1->uni_usr_name), usr_name, strlen(usr_name)+1);
+ make_unistr2(&(ss1->uni_net_name), net_name, strlen(net_name)+1);
}
/*******************************************************************