diff options
Diffstat (limited to 'Tests/LibC')
-rw-r--r-- | Tests/LibC/TestSnprintf.cpp | 2 | ||||
-rw-r--r-- | Tests/LibC/TestStrlcpy.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibC/TestSnprintf.cpp b/Tests/LibC/TestSnprintf.cpp index c7535db722..5f2bf01551 100644 --- a/Tests/LibC/TestSnprintf.cpp +++ b/Tests/LibC/TestSnprintf.cpp @@ -59,7 +59,7 @@ static bool test_single(Testcase<TArg> const& testcase) // Setup ByteBuffer actual = ByteBuffer::create_uninitialized(SANDBOX_CANARY_SIZE + testcase.dest_n + SANDBOX_CANARY_SIZE).release_value(); - fill_with_random(actual.data(), actual.size()); + fill_with_random(actual); ByteBuffer expected = actual; VERIFY(actual.offset_pointer(0) != expected.offset_pointer(0)); actual.overwrite(SANDBOX_CANARY_SIZE, testcase.dest, testcase.dest_n); diff --git a/Tests/LibC/TestStrlcpy.cpp b/Tests/LibC/TestStrlcpy.cpp index 01d97e45c0..98317e13a3 100644 --- a/Tests/LibC/TestStrlcpy.cpp +++ b/Tests/LibC/TestStrlcpy.cpp @@ -56,7 +56,7 @@ static bool test_single(Testcase const& testcase) // Setup ByteBuffer actual = ByteBuffer::create_uninitialized(SANDBOX_CANARY_SIZE + testcase.dest_n + SANDBOX_CANARY_SIZE).release_value(); - fill_with_random(actual.data(), actual.size()); + fill_with_random(actual); ByteBuffer expected = actual; VERIFY(actual.offset_pointer(0) != expected.offset_pointer(0)); actual.overwrite(SANDBOX_CANARY_SIZE, testcase.dest, testcase.dest_n); |