mlibc: fix sscanf bug

This commit is contained in:
Matheus
2026-05-24 21:11:52 -03:00
parent 7409cf5abf
commit 8f249aac13
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -1,3 +1,16 @@
diff --git mlibc-clean/options/ansi/generic/stdio.cpp mlibc-workdir/options/ansi/generic/stdio.cpp
index 71033d0..4d40869 100644
--- mlibc-clean/options/ansi/generic/stdio.cpp
+++ mlibc-workdir/options/ansi/generic/stdio.cpp
@@ -1224,6 +1224,8 @@ int do_scanf(H &handler, const Char *fmt, __builtin_va_list args) {
if (tolower(c) == 'x') {
handler.consume();
c = handler.look_ahead();
+ } else {
+ ++count;
}
}
while (true) {
diff --git mlibc-clean/options/glibc/generic/execinfo.cpp mlibc-workdir/options/glibc/generic/execinfo.cpp diff --git mlibc-clean/options/glibc/generic/execinfo.cpp mlibc-workdir/options/glibc/generic/execinfo.cpp
index 1ed110d..ded9114 100644 index 1ed110d..ded9114 100644
--- mlibc-clean/options/glibc/generic/execinfo.cpp --- mlibc-clean/options/glibc/generic/execinfo.cpp
+1 -1
View File
@@ -1,6 +1,6 @@
name=mlibc name=mlibc
from_source=mlibc from_source=mlibc
revision=1 revision=2
hostdeps="xgcc xbinutils pkgconfig" hostdeps="xgcc xbinutils pkgconfig"
builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg libsmarter" builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg libsmarter"
imagedeps="meson ninja-build git build-essential binutils" imagedeps="meson ninja-build git build-essential binutils"