Skip to content

Commit a46e4aa

Browse files
committed
Fix a wrong testcase
1 parent 08b481b commit a46e4aa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

test/testbufferoverrun.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5749,7 +5749,7 @@ class TestBufferOverrun : public TestFixture {
57495749

57505750
check("void foo() {\n"
57515751
" char c[6];\n"
5752-
" memcpy(&c, \"hello\\n\", 6);\n"
5752+
" strncpy(&c, \"hello\\0\", 6);\n"
57535753
"}");
57545754
ASSERT_EQUALS("", errout_str());
57555755
}

0 commit comments

Comments
 (0)