nuttx: use sizeof instead of define or number in snprintf

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2024-08-24 12:54:12 -04:00
committed by Xiang Xiao
parent dd7ecd9aef
commit d252b6229f
83 changed files with 114 additions and 110 deletions
+1 -1
View File
@@ -855,7 +855,7 @@ int mac802154dev_register(MACHANDLE mac, int minor)
/* Create the character device name */
snprintf(devname, DEVNAME_FMTLEN, DEVNAME_FMT, minor);
snprintf(devname, sizeof(devname), DEVNAME_FMT, minor);
/* Register the mac character driver */