From 748f296a76a76d38525ad35df6658811cae60222 Mon Sep 17 00:00:00 2001 From: Luke Leighton Date: Tue, 9 Feb 1999 19:51:44 +0000 Subject: removal of the use of unistrn2 function: replace it with unistr2_to_str which is more appropriate. (This used to be commit ac72fe1ab3d10f64a5945ccbd4ed3817e30f9f7b) --- source3/rpc_parse/parse_lsa.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source3/rpc_parse/parse_lsa.c') diff --git a/source3/rpc_parse/parse_lsa.c b/source3/rpc_parse/parse_lsa.c index 239c0847af..cb88e71536 100644 --- a/source3/rpc_parse/parse_lsa.c +++ b/source3/rpc_parse/parse_lsa.c @@ -688,9 +688,10 @@ void make_q_lookup_names(LSA_Q_LOOKUP_NAMES *q_l, POLICY_HND *hnd, for (i = 0; i < num_names; i++) { - int len = strlen(names[i]); + const char* name = names[i]; + int len = strlen(name); make_uni_hdr(&q_l->hdr_name[i], len, len, len != 0); - make_unistr2(&q_l->uni_name[i], names[i], len); + make_unistr2(&q_l->uni_name[i], name, len); } q_l->num_trans_entries = 0; -- cgit