From 76fa831165bef8260afdce39c265ec925bb536ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Thu, 17 Feb 2005 16:57:12 +0000 Subject: [PATCH] fixes sscanf for decimal values, enables keymap to actually load source keymaps git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11407 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kernel/libroot/posix/glibc/stdio-common/vfscanf.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/kernel/libroot/posix/glibc/stdio-common/vfscanf.c b/src/kernel/libroot/posix/glibc/stdio-common/vfscanf.c index 2256f60143..07eb1caf0a 100644 --- a/src/kernel/libroot/posix/glibc/stdio-common/vfscanf.c +++ b/src/kernel/libroot/posix/glibc/stdio-common/vfscanf.c @@ -1163,18 +1163,17 @@ __vfscanf (FILE *s, const char *format, va_list argptr) ADDW (L_('\0')); if (need_longlong && (flags & LONGDBL)) { - // ToDo: Aaaaaaaaarrrrgh! Fix me! if (number_signed) - num.q = 42; //__strtoll_internal (wp, &tw, base, flags & GROUP); + num.q = __strtoll_internal (wp, &tw, base, flags & GROUP); else - num.uq = 42; //__strtoull_internal (wp, &tw, base, flags & GROUP); + num.uq = __strtoull_internal (wp, &tw, base, flags & GROUP); } else { if (number_signed) - num.l = 42; //__strtol_internal (wp, &tw, base, flags & GROUP); + num.l = __strtol_internal (wp, &tw, base, flags & GROUP); else - num.ul = 42; //__strtoul_internal (wp, &tw, base, flags & GROUP); + num.ul = __strtoul_internal (wp, &tw, base, flags & GROUP); } if (wp == tw) conv_error ();