diff options
author | Jeremy Allison <jra@samba.org> | 2011-05-03 13:57:30 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-05-04 12:12:14 -0700 |
commit | 18582016d96e3f41f8828f0539969678ad7d233e (patch) | |
tree | 2f55bde5be39b1f40c0c895b29bbc7d876e44501 /source3/smbd | |
parent | 5c53d63348882b17f16bed0cc41f1489dcd6cf66 (diff) | |
download | samba-18582016d96e3f41f8828f0539969678ad7d233e.tar.gz samba-18582016d96e3f41f8828f0539969678ad7d233e.tar.bz2 samba-18582016d96e3f41f8828f0539969678ad7d233e.zip |
Fix off-by-one when used with safe_strcpy.
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/password.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/password.c b/source3/smbd/password.c index 720b1bf4c2..54746c3f56 100644 --- a/source3/smbd/password.c +++ b/source3/smbd/password.c @@ -549,7 +549,7 @@ static char *validate_group(struct smbd_server_connection *sconn, DEBUG(10,("validate_group: = gr_mem = " "%s\n", gptr->gr_mem[i])); - safe_strcpy(member, gptr->gr_mem[i], + strlcpy(member, gptr->gr_mem[i], list_len - (member-member_list)); member += member_len; } |