From 18582016d96e3f41f8828f0539969678ad7d233e Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Tue, 3 May 2011 13:57:30 -0700 Subject: Fix off-by-one when used with safe_strcpy. --- source3/smbd/password.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3') 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; } -- cgit