summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-05-06 20:23:25 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-06 20:36:17 +0200
commit0615a4d42aad9a1d90139522790c76a0a94b22a8 (patch)
treea8789da5824327eb4941d4b6146878a69d61f916
parentf142b43e890e539071f9130cf8769e5f7cb1af82 (diff)
downloadserenity-0615a4d42aad9a1d90139522790c76a0a94b22a8.zip
LibC: Make scanf() not increment the assignment count for %n
-rw-r--r--Userland/Libraries/LibC/scanf.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/scanf.cpp b/Userland/Libraries/LibC/scanf.cpp
index a7f05fa43a..264ff733fe 100644
--- a/Userland/Libraries/LibC/scanf.cpp
+++ b/Userland/Libraries/LibC/scanf.cpp
@@ -612,7 +612,6 @@ extern "C" int vsscanf(const char* input, const char* format, va_list ap)
auto* ptr = va_arg(ap, int*);
*ptr = input_lexer.tell();
}
- ++elements_matched;
break;
}
}