Removed unnecessary iterator copy in input::getc()