summaryrefslogtreecommitdiff
path: root/Userland/Utilities/pmap.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Utilities/pmap.cpp')
-rw-r--r--Userland/Utilities/pmap.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Utilities/pmap.cpp b/Userland/Utilities/pmap.cpp
index b38fcbbc20..c6060d5640 100644
--- a/Userland/Utilities/pmap.cpp
+++ b/Userland/Utilities/pmap.cpp
@@ -42,7 +42,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
outln("Address{} Size Access Name", padding);
}
- auto file_contents = TRY(file->read_all());
+ auto file_contents = TRY(file->read_until_eof());
auto json = TRY(JsonValue::from_string(file_contents));
Vector<JsonValue> sorted_regions = json.as_array().values();