summaryrefslogtreecommitdiff
path: root/Tests/LibC/TestSnprintf.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/LibC/TestSnprintf.cpp')
-rw-r--r--Tests/LibC/TestSnprintf.cpp2
1 files changed, 1 insertions, 1 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);