mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-10-07 06:05:10 +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
|
|
@ -1080,11 +1080,11 @@ static int tcurses_vt100_setattributes(FAR struct termcurses_s *dev,
|
|||
|
||||
if (attrib & TCURS_ATTRIB_BOLD)
|
||||
{
|
||||
strcpy(str, g_setbold);
|
||||
strlcpy(str, g_setbold, sizeof(str));
|
||||
}
|
||||
else
|
||||
{
|
||||
strcpy(str, g_setnobold);
|
||||
strlcpy(str, g_setnobold, sizeof(str));
|
||||
}
|
||||
|
||||
if (attrib & TCURS_ATTRIB_BLINK)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue