I\'m trying to make a program that is similar to the "tr" function in Unix/Linux. I keep getting a segmentation fault here and am not sure what to do to fix it.