From 0615a4d42aad9a1d90139522790c76a0a94b22a8 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Thu, 6 May 2021 20:23:25 +0200 Subject: [PATCH] LibC: Make scanf() not increment the assignment count for %n --- Userland/Libraries/LibC/scanf.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/Userland/Libraries/LibC/scanf.cpp b/Userland/Libraries/LibC/scanf.cpp index a7f05fa43ab..264ff733fe5 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; } }