Fixing a buffer over flow error in chomp.