r2545: str_charnum -> strlen_m.
authorAndrew Bartlett <abartlet@samba.org>
Wed, 22 Sep 2004 23:56:22 +0000 (23:56 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 17:59:04 +0000 (12:59 -0500)
These two functions do exactly the same thing, I'll be removing
str_charnum shortly.

Andrew Bartlett
(This used to be commit 5eaa4c97488671a0b7ff539d4d392cbaa29fa489)

source4/libnet/libnet_passwd.c

index 96471df1dc7a6e95c793e05c407366640e9f429b..314ab5028a6b3d9721551fb4cedefb9375b0d19e 100644 (file)
@@ -574,7 +574,7 @@ UserInfo24:
        ZERO_STRUCT(u_info);
        encode_pw_buffer(u_info.info24.password.data, r->samr.in.newpassword, STR_UNICODE);
        /* w2k3 ignores this length */
-       u_info.info24.pw_len = str_charnum(r->samr.in.newpassword)*2;
+       u_info.info24.pw_len = strlen_m(r->samr.in.newpassword)*2;
 
        status = dcerpc_fetch_session_key(c.pdc.out.dcerpc_pipe, &session_key);
        if (!NT_STATUS_IS_OK(status)) {