stdio: fix scanf buffering so all tests pass

Code factoring and performance improvements will follow.
This commit is contained in:
Lephenixnoir 2024-01-14 15:58:18 +01:00
parent c776336a0d
commit b61cc096d9
Signed by: Lephenixnoir
GPG Key ID: 1BBA026E13FC0495
1 changed files with 2 additions and 1 deletions

View File

@ -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) {