mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-19 04:42:12 +00:00
Remove a use of std::strcpy() to avoid a C4996 warning from MSVC
This commit is contained in:
@@ -7430,7 +7430,12 @@ testResizeAndOverwrite()
|
||||
5,
|
||||
[](char* buf, std::size_t) -> std::size_t
|
||||
{
|
||||
std::strcpy(buf, "Hello");
|
||||
// Don't use std::strcpy() to avoid a MSVC C4996 warning.
|
||||
buf[0] = 'H';
|
||||
buf[1] = 'e';
|
||||
buf[2] = 'l';
|
||||
buf[3] = 'l';
|
||||
buf[4] = 'o';
|
||||
return 5;
|
||||
}
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user