Resolved dot versus arrow operator issue in scanner.c