0

Code Review!, I am a beginner programmer, and have recently started writing a simple string colorizer in C (GitHub page). The program works fine when the string is provided as an argument to main, but when the string is provided through stdin, I get this vague runtime error:
$ fortune -s | color...