Found segmentation fault in scanner.c in get_word