diff --git a/src/stdio/scanf/scan.c b/src/stdio/scanf/scan.c index 457f700..b1aff5a 100644 --- a/src/stdio/scanf/scan.c +++ b/src/stdio/scanf/scan.c @@ -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) {