Skip to content

Commit 84f5321

Browse files
committed
fix sprintf warning
1 parent ef89e65 commit 84f5321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Include/SevenBit/DI/Details/Helpers/Formatter.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ namespace sb::di::details
7979
else
8080
{
8181
std::vector<char> largeBuff(size + 1);
82-
assertFormatRes(std::sprintf(largeBuff.data(), fmt, data), fmt);
82+
assertFormatRes(std::snprintf(largeBuff.data(), size + 1, fmt, data), fmt);
8383
result += std::string_view(largeBuff.data(), size);
8484
}
8585
}

0 commit comments

Comments
 (0)