Update scanner.c

some change