stdio: fix scanf buffering so all tests pass
Code factoring and performance improvements will follow.
This commit is contained in:
parent
c776336a0d
commit
b61cc096d9
|
@ -274,6 +274,7 @@ int __scanf(
|
|||
loopagain:
|
||||
|
||||
pos++;
|
||||
in->currentlength = 0;
|
||||
|
||||
switch( format[pos] ) {
|
||||
// we need to decrypt the corresponding scanf set of character
|
||||
|
@ -542,7 +543,7 @@ int __scanf(
|
|||
}
|
||||
|
||||
case 'c': {
|
||||
char temp;
|
||||
int temp;
|
||||
if (!skip) {
|
||||
char *c = (char *) va_arg( *args, char* );
|
||||
if (in->readmaxlength==(unsigned int)-1) {
|
||||
|
|
Loading…
Reference in New Issue