From 888643b981e2ac29d8e7c6dca6943381dfc84e58 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Wed, 25 Oct 2000 04:29:35 +0000 Subject: Removed erroneous +1's on length of unicode domain names for various functions in the \\lsarpc pipe. (This used to be commit 30bb3f2df97662c6547c7994ce50efe9abf37968) --- source3/rpc_server/srv_lsa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/rpc_server/srv_lsa.c b/source3/rpc_server/srv_lsa.c index 2e12f00bb6..9c3d785627 100644 --- a/source3/rpc_server/srv_lsa.c +++ b/source3/rpc_server/srv_lsa.c @@ -88,7 +88,7 @@ Init dom_query static void init_dom_query(DOM_QUERY *d_q, char *dom_name, DOM_SID *dom_sid) { - int domlen = (dom_name != NULL) ? strlen(dom_name)+1 : 0; + int domlen = (dom_name != NULL) ? strlen(dom_name) : 0; d_q->uni_dom_max_len = domlen * 2; d_q->uni_dom_str_len = domlen * 2; @@ -183,7 +183,7 @@ static int init_dom_ref(DOM_R_REF *ref, char *dom_name, DOM_SID *dom_sid) ref->max_entries = MAX_REF_DOMAINS; ref->num_ref_doms_2 = num+1; - len = (dom_name != NULL) ? strlen(dom_name)+1 : 0; + len = (dom_name != NULL) ? strlen(dom_name) : 0; if(dom_name != NULL && len == 0) len = 1; -- cgit