projects
/
kopensolaris-gnu
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9eab83
)
Wed Feb 14 00:21:17 1996 David Mosberger-Tang <davidm@azstarnet.com>
author
roland
<roland>
Sun, 18 Feb 1996 18:12:11 +0000
(18:12 +0000)
committer
roland
<roland>
Sun, 18 Feb 1996 18:12:11 +0000
(18:12 +0000)
* stdio-common/vfscanf.c (endif): fixed scanning of "0" with %d
format.
stdio-common/vfscanf.c
patch
|
blob
|
history
diff --git
a/stdio-common/vfscanf.c
b/stdio-common/vfscanf.c
index
48aa059
..
60e9e46
100644
(file)
--- a/
stdio-common/vfscanf.c
+++ b/
stdio-common/vfscanf.c
@@
-542,7
+542,9
@@
__vfscanf (FILE *s, const char *format, va_list argptr)
}
}
else if (base == 0)
- base = 8;
+ base = 8;
+ else
+ ADDW('0'); /* zero is part of the number */
}
if (base == 0)