summaryrefslogtreecommitdiff
path: root/Userland/Applets/ResourceGraph/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Applets/ResourceGraph/main.cpp')
-rw-r--r--Userland/Applets/ResourceGraph/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applets/ResourceGraph/main.cpp b/Userland/Applets/ResourceGraph/main.cpp
index 392e2140a5..442ac13be6 100644
--- a/Userland/Applets/ResourceGraph/main.cpp
+++ b/Userland/Applets/ResourceGraph/main.cpp
@@ -153,7 +153,7 @@ private:
file = TRY(Core::Stream::File::open(filename, Core::Stream::OpenMode::Read));
}
- auto file_contents = TRY(file->read_all());
+ auto file_contents = TRY(file->read_until_eof());
return TRY(JsonValue::from_string(file_contents));
}