mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-19 11:23:07 +08:00
Replace all sprintf with snprintf
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
134b8b538f
commit
7c37421266
@@ -283,7 +283,7 @@ int nsh_setvar(FAR struct nsh_vtbl_s *vtbl, FAR const char *name,
|
||||
|
||||
/* Now, put the new name=value string into the NSH variable buffer */
|
||||
|
||||
sprintf(pair, "%s=%s", name, value);
|
||||
snprintf(pair, varlen, "%s=%s", name, value);
|
||||
return OK;
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user