Skip to content

Commit b33cfe2

Browse files
author
Amsakan Bavan
committed
Switched from sprintf to snprintf
1 parent 942196b commit b33cfe2

File tree

1 file changed

+2
-2
lines changed
  • include/boost/gil/extension/io/tiff/detail

1 file changed

+2
-2
lines changed

include/boost/gil/extension/io/tiff/detail/log.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class console_log
4545
)
4646
{
4747
char buf[1000];
48-
sprintf(buf, fmt, ap);
48+
snprintf(buf, 1000, fmt, ap);
4949
std::cout << "error: " << buf << std::endl;
5050
}
5151

@@ -55,7 +55,7 @@ class console_log
5555
)
5656
{
5757
char buf[1000];
58-
sprintf(buf, fmt, ap);
58+
snprintf(buf, 1000, fmt, ap);
5959
std::cout << "warning: " << fmt << std::endl;
6060
}
6161
};

0 commit comments

Comments
 (0)