diff options
author | David McCullough <davidm@snapgear.com> | 2001-08-09 13:44:22 +0000 |
---|---|---|
committer | David McCullough <davidm@snapgear.com> | 2001-08-09 13:44:22 +0000 |
commit | 71183378185d6305c2d6b5bf689be8441b1e88b3 (patch) | |
tree | 83b62e575f0569292d809339e057b6b0d46bb032 /test/setjmp | |
parent | e7ba98d1c71ff06b015e3acc40dd44289878a17a (diff) |
Add in changes from philipc@lineo:
Fix three bugs and bring into line with glibc:
1. The first character read using getc() was being ignored if it was EOF.
Normally this is okay because the next getc() returns EOF as well, but
for sscanf, this was causing us to skip the null terminator and start
scanning whatever happened to be next in memory.
2. %s, %c, and %[ formats now return -1 if EOF is reached before any
characters are read, instead of 0. This was causing an infinite loop
in diald.
3. Default to base 10 for %i fields if not prefix modifier present.
Diffstat (limited to 'test/setjmp')
0 files changed, 0 insertions, 0 deletions