mirror of
https://github.com/nlohmann/json.git
synced 2025-08-09 05:22:48 +03:00
🏁 adding parentheses around std::snprintf calls #1337
This commit is contained in:
@@ -1360,7 +1360,7 @@ scan_number_done:
|
||||
{
|
||||
// escape control characters
|
||||
char cs[9];
|
||||
snprintf(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
|
||||
(std::snprintf)(cs, 9, "<U+%.4X>", static_cast<unsigned char>(c));
|
||||
result += cs;
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user