From 8f249aac130a5bc60080f0a7d62868f00d8a6fcc Mon Sep 17 00:00:00 2001 From: Matheus Date: Sun, 24 May 2026 21:11:52 -0300 Subject: [PATCH] mlibc: fix sscanf bug --- patches/mlibc/jinx-working-patch.patch | 13 +++++++++++++ recipes/mlibc | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/patches/mlibc/jinx-working-patch.patch b/patches/mlibc/jinx-working-patch.patch index 753674bb..41fe74f9 100644 --- a/patches/mlibc/jinx-working-patch.patch +++ b/patches/mlibc/jinx-working-patch.patch @@ -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 index 1ed110d..ded9114 100644 --- mlibc-clean/options/glibc/generic/execinfo.cpp diff --git a/recipes/mlibc b/recipes/mlibc index f94c6015..ca1700b0 100644 --- a/recipes/mlibc +++ b/recipes/mlibc @@ -1,6 +1,6 @@ name=mlibc from_source=mlibc -revision=1 +revision=2 hostdeps="xgcc xbinutils pkgconfig" builddeps="freestnd-c-hdrs freestnd-cxx-hdrs frigg libsmarter" imagedeps="meson ninja-build git build-essential binutils"