problem:char taking more than one value

evanmars:
Are you printing input[0] six times?

It will print input[0] once for each character received. It's just that any characters after the first six are not stored.