mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
mlibc: fix sscanf bug
This commit is contained in:
@@ -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
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user