summaryrefslogtreecommitdiff
path: root/source3/smbd/chgpasswd.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-10 22:30:47 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-10 22:30:47 +0000
commit8b6b6b57b54aeafb915cf99e5610941ee1d464b8 (patch)
treeb015714e324e3ff11558942a540e2cd587b32fb1 /source3/smbd/chgpasswd.c
parent7a65924133431a45cf3b80f06b741f17d4f729c1 (diff)
downloadsamba-8b6b6b57b54aeafb915cf99e5610941ee1d464b8.tar.gz
samba-8b6b6b57b54aeafb915cf99e5610941ee1d464b8.tar.bz2
samba-8b6b6b57b54aeafb915cf99e5610941ee1d464b8.zip
use jeremy's versions of the UNICODE routines.
(This used to be commit c5109ff782be8774db47a92b48ca6335ec8d6065)
Diffstat (limited to 'source3/smbd/chgpasswd.c')
-rw-r--r--source3/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/chgpasswd.c b/source3/smbd/chgpasswd.c
index a2e75ecc43..9791d3a38e 100644
--- a/source3/smbd/chgpasswd.c
+++ b/source3/smbd/chgpasswd.c
@@ -693,7 +693,7 @@ BOOL check_oem_password(char *user,
int uni_pw_len = new_pw_len;
char *pw;
new_pw_len /= 2;
- pw = unistrn2(&lmdata[512-uni_pw_len], new_pw_len);
+ pw = unistrn2((uint16*)(&lmdata[512-uni_pw_len]), new_pw_len);
memcpy(new_passwd, pw, new_pw_len+1);
}
else