From b33cfe23d9af2ed06dfbc14e0acbbbb6abe9bdee Mon Sep 17 00:00:00 2001 From: Amsakan Bavan Date: Mon, 5 Jan 2026 13:56:27 +0100 Subject: [PATCH] Switched from sprintf to snprintf --- include/boost/gil/extension/io/tiff/detail/log.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } };