From 6c8f7e400540421320e3cbd80f7e1a9551dfed14 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Tue, 17 Mar 2009 14:03:02 +1100 Subject: Port Samba4 to the new combined libcli/auth functions For example, some of the new shared functionality was previously in the wkssvc torture test. Andrew Bartlett --- libcli/auth/smbencrypt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcli/auth/smbencrypt.c') diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index bcb40acda1..f5a73feadc 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -538,7 +538,7 @@ bool encode_pw_buffer(uint8_t buffer[516], const char *password, int string_flag /* the incoming buffer can be any alignment. */ string_flags |= STR_NOALIGN; - new_pw_len = push_string(new_pw, new_pw, + new_pw_len = push_string(new_pw, password, sizeof(new_pw), string_flags); -- cgit