summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Userland/Utilities/dd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Utilities/dd.cpp b/Userland/Utilities/dd.cpp
index 828a55fbab..7c163a4deb 100644
--- a/Userland/Utilities/dd.cpp
+++ b/Userland/Utilities/dd.cpp
@@ -39,8 +39,8 @@ static String split_at_equals(const char* argument)
{
String string_value(argument);
- auto values = string_value.split('=');
- if (values.size() != 2) {
+ auto values = string_value.split_limit('=', 2);
+ if (values.size() < 2) {
warnln("Unable to parse: {}", argument);
return {};
} else {