mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-18 08:52:01 +08:00
change strcpy to strlcpy
Change-Id: I8b9429a3c225a82842fce136bdb14b8b135066d3 Signed-off-by: lilei19 <lilei19@xiaomi.com>
This commit is contained in:
@@ -111,7 +111,8 @@ int wdt_init(void)
|
||||
{
|
||||
int fd;
|
||||
int ret;
|
||||
strcpy(wdog.devname, CONFIG_EXAMPLES_WATCHER_DEVPATH);
|
||||
strlcpy(wdog.devname, CONFIG_EXAMPLES_WATCHER_DEVPATH,
|
||||
sizeof(wdog.devname));
|
||||
|
||||
/* Open the watchdog device for reading */
|
||||
|
||||
|
Reference in New Issue
Block a user