summaryrefslogtreecommitdiffstats
path: root/source/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
commitc5109ff782be8774db47a92b48ca6335ec8d6065 (patch)
treeaeb188b8298c2e5d0a0b738a53adf56cf6f03a86 /source/smbd/chgpasswd.c
parent3072044134eadbf46350b32c1ed0703681b0d590 (diff)
downloadsamba-c5109ff782be8774db47a92b48ca6335ec8d6065.tar.gz
samba-c5109ff782be8774db47a92b48ca6335ec8d6065.tar.xz
samba-c5109ff782be8774db47a92b48ca6335ec8d6065.zip
use jeremy's versions of the UNICODE routines.
Diffstat (limited to 'source/smbd/chgpasswd.c')
-rw-r--r--source/smbd/chgpasswd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/smbd/chgpasswd.c b/source/smbd/chgpasswd.c
index a2e75ecc431..9791d3a38ee 100644
--- a/source/smbd/chgpasswd.c
+++ b/source/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