mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2026-02-12 09:45:45 +00:00
Chore: replace many sprintf with snprintf. Only one was doubtful - 5 x %f into a small string?
This commit is contained in:
@ -698,7 +698,7 @@ static int http_rest_post_logconfig(http_request_t* request) {
|
||||
else {
|
||||
ADDLOG_ERROR(LOG_FEATURE_API, "Unexpected key: %.*s", t[i].end - t[i].start,
|
||||
json_str + t[i].start);
|
||||
sprintf(tmp, "Unexpected key: %.*s\n", t[i].end - t[i].start,
|
||||
snprintf(tmp, sizeof(tmp), "Unexpected key: %.*s\n", t[i].end - t[i].start,
|
||||
json_str + t[i].start);
|
||||
poststr(request, tmp);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user