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

Merge pull request #785 from anotherSimpleCoder/feature/snprintf

Switched from sprintf to snprintf
This commit is contained in:
Mateusz Łoskot
2026-01-05 20:18:39 +01:00
committed by GitHub

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;
}
};