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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user