summaryrefslogtreecommitdiffstats
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-09-03 05:35:13 +0000
committerAndrew Tridgell <tridge@samba.org>1998-09-03 05:35:13 +0000
commitea1cd3fbd727c338aae9c98e8a383e0d81142f60 (patch)
tree765cd3ff678a3fb2868063dfc239a24317356d8f /source3
parent0b5cc173099c7fd5ea4865ef4197739ec87e4c35 (diff)
downloadsamba-ea1cd3fbd727c338aae9c98e8a383e0d81142f60.tar.gz
samba-ea1cd3fbd727c338aae9c98e8a383e0d81142f60.tar.xz
samba-ea1cd3fbd727c338aae9c98e8a383e0d81142f60.zip
we were setting the strings 1 too long in make_srv_share_info1_str()
(This used to be commit 29e1e59db8035e0fd2c088a969fa17549ce1b897)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_parse/parse_srv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_parse/parse_srv.c b/source3/rpc_parse/parse_srv.c
index a66699b95c2..356b515f196 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)+1);
- make_unistr2(&(sh1->uni_remark ), remark , strlen(remark )+1);
+ make_unistr2(&(sh1->uni_netname), net_name, strlen(net_name));
+ make_unistr2(&(sh1->uni_remark ), remark , strlen(remark ));
}
/*******************************************************************