diff --git a/include/boost/gil/extension/io/tiff/detail/log.hpp b/include/boost/gil/extension/io/tiff/detail/log.hpp index 590886caa..bed9978f9 100644 --- a/include/boost/gil/extension/io/tiff/detail/log.hpp +++ b/include/boost/gil/extension/io/tiff/detail/log.hpp @@ -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; } };