2
0
mirror of https://github.com/boostorg/gil.git synced 2026-01-19 04:12:11 +00:00

Switched from sprintf to snprintf

This commit is contained in:
Amsakan Bavan
2026-01-05 13:56:27 +01:00
parent 942196bedc
commit b33cfe23d9

View File

@@ -45,7 +45,7 @@ private:
)
{
char buf[1000];
sprintf(buf, fmt, ap);
snprintf(buf, 1000, fmt, ap);
std::cout << "error: " << buf << std::endl;
}
@@ -55,7 +55,7 @@ private:
)
{
char buf[1000];
sprintf(buf, fmt, ap);
snprintf(buf, 1000, fmt, ap);
std::cout << "warning: " << fmt << std::endl;
}
};