mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3 Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
parent
e86745b9a2
commit
41f60bd669
33 changed files with 238 additions and 180 deletions
|
|
@ -138,7 +138,7 @@ static inline void mkfatfs_initmbr(FAR struct fat_format_s *fmt,
|
|||
|
||||
/* 8@3: Usually "MSWIN4.1" */
|
||||
|
||||
strcpy((FAR char *)&var->fv_sect[MBR_OEMNAME], "NUTTX ");
|
||||
memcpy(&var->fv_sect[MBR_OEMNAME], "NUTTX ", 8);
|
||||
|
||||
/* 2@11: Bytes per sector: 512, 1024, 2048, 4096 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue