mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
Replace all sprintf with snprintf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
committed by
Alin Jerpelea
parent
fa8719bb5a
commit
6f6fce95a2
@@ -2408,7 +2408,7 @@ int usbdev_serialinitialize(int minor)
|
||||
|
||||
/* Register the single port supported by this implementation */
|
||||
|
||||
sprintf(devname, "/dev/ttyUSB%d", minor);
|
||||
snprintf(devname, sizeof(devname), "/dev/ttyUSB%d", minor);
|
||||
ret = uart_register(devname, &priv->serdev);
|
||||
if (ret)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user