Fix warnings for Visual C++

This commit is contained in:
Patrick Pelissier committed 2022-05-10 23:49:20 +02:00
1 parent c829827f48
commit e83dea8212
1 file changed
+1 -1
+1 -1
View File
@@ -656,7 +656,7 @@ static void test_int(void)
assert(string_equal_str_p(s, "4294967295"));
for(int i = -10000; i <= 10000; i++) {
sprintf(buffer, "%d", i);
snprintf(buffer, sizeof buffer, "%d", i);
string_set_si(s, i);
assert(string_equal_str_p(s, buffer));
}