Fix typo in getchar() function mame