mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-16 22:38:41 +08:00
change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3 Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
@@ -317,7 +317,7 @@ static FAR struct ftpd_account_s *ftpd_account_new(FAR const char *user,
|
||||
if (user != NULL)
|
||||
{
|
||||
ret->user = (FAR char *)&ret[1];
|
||||
strcpy(ret->user, user);
|
||||
strlcpy(ret->user, user, usersize);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user