mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2026-07-05 07:51:17 +02:00
Tests: replace sprintf with snprintf
This commit is contained in:
@@ -44,7 +44,7 @@ TEST_CASE("serialize MsgPack object") {
|
||||
SECTION("map 16") {
|
||||
for (int i = 0; i < 16; ++i) {
|
||||
char key[16];
|
||||
sprintf(key, "i%X", i);
|
||||
snprintf(key, 16, "i%X", i);
|
||||
object[key] = i;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user