mirror of
https://git.planet-casio.com/Vhex-Kernel-Core/fxlibc.git
synced 2025-05-29 06:55:10 +02:00
stdio: fix scanf buffering so all tests pass
Code factoring and performance improvements will follow.
This commit is contained in:
parent
c776336a0d
commit
b61cc096d9
1 changed files with 2 additions and 1 deletions
|
@ -274,6 +274,7 @@ int __scanf(
|
||||||
loopagain:
|
loopagain:
|
||||||
|
|
||||||
pos++;
|
pos++;
|
||||||
|
in->currentlength = 0;
|
||||||
|
|
||||||
switch( format[pos] ) {
|
switch( format[pos] ) {
|
||||||
// we need to decrypt the corresponding scanf set of character
|
// we need to decrypt the corresponding scanf set of character
|
||||||
|
@ -542,7 +543,7 @@ int __scanf(
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'c': {
|
case 'c': {
|
||||||
char temp;
|
int temp;
|
||||||
if (!skip) {
|
if (!skip) {
|
||||||
char *c = (char *) va_arg( *args, char* );
|
char *c = (char *) va_arg( *args, char* );
|
||||||
if (in->readmaxlength==(unsigned int)-1) {
|
if (in->readmaxlength==(unsigned int)-1) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue