removal of the use of unistrn2 function: replace it with unistr2_to_str
[samba.git] / source3 / rpc_server / srv_reg.c
index b90912488f1b5ed70984250206cb8a0565d9f9c8..f98133626d50d0e96ed9fd8141c2f956c7c6ca40 100644 (file)
@@ -136,7 +136,7 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u,
                status = 0xC000000 | NT_STATUS_TOO_MANY_SECRETS; /* ha ha very droll */
        }
 
-       fstrcpy(name, unistrn2(q_u->uni_name.buffer, q_u->uni_name.uni_str_len));
+       fstrcpy(name, unistr2_to_str(&q_u->uni_name));
 
        if (status == 0x0)
        {