summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2007-09-21 09:52:28 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:30:56 -0500
commit4fab9cf625278dd032a808b5c1bb8f2aec1bd0f2 (patch)
treed94839718ba6b2e6d6e93c8d6d4d51a8465538e7 /source3
parent4ab70e8438361fd41b71c959d0d20137959a51ea (diff)
downloadsamba-4fab9cf625278dd032a808b5c1bb8f2aec1bd0f2.tar.gz
samba-4fab9cf625278dd032a808b5c1bb8f2aec1bd0f2.tar.bz2
samba-4fab9cf625278dd032a808b5c1bb8f2aec1bd0f2.zip
r25272: Fix a bunch of callers of pull_ucs2 that passed -1 for dest_len.
Michael (This used to be commit a4f53fe22569a63fe7b196971ac6c28a676ee4e8)
Diffstat (limited to 'source3')
-rw-r--r--source3/winbindd/winbindd_pam.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/winbindd/winbindd_pam.c b/source3/winbindd/winbindd_pam.c
index 50b24864b5..c4db691d05 100644
--- a/source3/winbindd/winbindd_pam.c
+++ b/source3/winbindd/winbindd_pam.c
@@ -61,22 +61,22 @@ static NTSTATUS append_info3_as_txt(TALLOC_CTX *mem_ctx,
state->response.data.auth.info3.num_other_sids = info3->num_other_sids;
unistr2_to_ascii(state->response.data.auth.info3.user_name,
- &info3->uni_user_name, -1);
+ &info3->uni_user_name, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.full_name,
- &info3->uni_full_name, -1);
+ &info3->uni_full_name, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.logon_script,
- &info3->uni_logon_script, -1);
+ &info3->uni_logon_script, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.profile_path,
- &info3->uni_profile_path, -1);
+ &info3->uni_profile_path, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.home_dir,
- &info3->uni_home_dir, -1);
+ &info3->uni_home_dir, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.dir_drive,
- &info3->uni_dir_drive, -1);
+ &info3->uni_dir_drive, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.logon_srv,
- &info3->uni_logon_srv, -1);
+ &info3->uni_logon_srv, sizeof(fstring));
unistr2_to_ascii(state->response.data.auth.info3.logon_dom,
- &info3->uni_logon_dom, -1);
+ &info3->uni_logon_dom, sizeof(fstring));
return NT_STATUS_OK;
}