mirror of
https://github.com/apache/nuttx.git
synced 2026-08-01 20:28:58 +00: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:
parent
dd7ecd9aef
commit
d252b6229f
83 changed files with 114 additions and 110 deletions
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue