Skip to content

Commit ad8ccd4

Browse files
committed
fix
1 parent 3e20e23 commit ad8ccd4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/test_xbasic_fixed_string.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1170,7 +1170,7 @@ namespace xtl
11701170
{
11711171
std::string s = "thisisatest";
11721172
char buf[16];
1173-
strcpy_s(buf, sizeof(buf), s.c_str());
1173+
strncpy(buf, s.c_str(), sizeof(buf));
11741174
numpy_string* x = reinterpret_cast<numpy_string*>(buf);
11751175

11761176
EXPECT_EQ(*x, s);

0 commit comments

Comments
 (0)