| author | Augustin Cavalier <waddlesplash@gmail.com> | 2025-04-29 10:09:21.0 -04:00:00 |
|---|---|---|
| committer | Augustin Cavalier <waddlesplash@gmail.com> | 2025-04-29 10:09:21.0 -04:00:00 |
| commit | 2a6de729eca3555e8e7db3105f094159a6989dec [patch] |
|
| tree | 9efbe1253296f82c348077f6ce9b3a42243295e6 |
|
| parent | 08f21fb5bd981dca4c7e3f2382f0cb9a6d7f4c20 |
|
| download | 2a6de729eca3555e8e7db3105f094159a6989dec.tar.gz |
|
libroot/glibc: sscanf wants NULL instead of empty string for thousands.
Otherwise comparisons later on won't work properly. Fixes #19554.
Diff
src/system/libroot/posix/glibc/stdio-common/vfscanf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/system/libroot/posix/glibc/stdio-common/vfscanf.c b/src/system/libroot/posix/glibc/stdio-common/vfscanf.c index 9cbb7d6..6d73887 100644 --- a/src/system/libroot/posix/glibc/stdio-common/vfscanf.c +++ b/src/system/libroot/posix/glibc/stdio-common/vfscanf.c @@ -338,6 +338,10 @@ thousands = _NL_CURRENT_WORD (LC_NUMERIC, _NL_NUMERIC_THOUSANDS_SEP_WC); #else thousands = _NL_CURRENT (LC_NUMERIC, THOUSANDS_SEP); #ifdef __HAIKU__ if (thousands != NULL && *thousands == '\0') thousands = NULL; #endif #endif }