programming error...Need Help!!

the compiler won't complain about this pile of pooh

It goes without saying that reading 5 of the 1 or more characters available is not a good idea.