diff options
Diffstat (limited to 'Userland/Utilities/pro.cpp')
-rw-r--r-- | Userland/Utilities/pro.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Utilities/pro.cpp b/Userland/Utilities/pro.cpp index 7556eb7a17..6bf653d1bc 100644 --- a/Userland/Utilities/pro.cpp +++ b/Userland/Utilities/pro.cpp @@ -122,7 +122,8 @@ private: { if (!m_condition()) { write_to_buffer:; - m_buffer.append(bytes.data(), bytes.size()); + if (!m_buffer.try_append(bytes.data(), bytes.size())) + return 0; return bytes.size(); } |