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
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

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