libc.obj : Try fix "%o" scanf bug.

git-svn-id: svn://kolibrios.org@9862 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
turbocat 2022-07-26 08:32:48 +00:00
parent b3232bd390
commit 1e116c9679

View File

@ -172,7 +172,7 @@ int try_parse_int(long long *digit, int ch, const void *src, void *save, vir
if (ch == '0') // octal or hex, read next if (ch == '0') // octal or hex, read next
{ {
ch = vgetc(save, src); ch = vgetc(save, src);
if (ch == 'c' || ch == 'C') if (ch == 'o')
base = 8; base = 8;
else if (ch == 'x' || ch == 'X') else if (ch == 'x' || ch == 'X')
base = 16; base = 16;