mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 06:42:32 +08:00
nuttx: use sizeof instead of define or number in snprintf
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
committed by
Xiang Xiao
parent
dd7ecd9aef
commit
d252b6229f
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user