mirror of
https://github.com/boostorg/url.git
synced 2025-05-09 17:33:52 +00:00
test: snprintf replaces sprintf
This commit is contained in:
parent
50f7247e7c
commit
c0726db4d9
@ -217,8 +217,7 @@ inline std::string test_output_impl( char const& v )
|
||||
else
|
||||
{
|
||||
char buffer[ 8 ];
|
||||
std::sprintf( buffer, "\\x%02X", static_cast<unsigned char>( v ) );
|
||||
|
||||
std::snprintf( buffer, sizeof(buffer), "\\x%02X", static_cast<unsigned char>( v ) );
|
||||
return buffer;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user