If the rgb.txt contains blank or whitespace only lines stage will hang due to the rgb.txt processing:
while (strchr(" \t\n", line[strlen(line)-1]))
line[strlen(line)-1] = 0;
I imagine just checking that strlen(line) > 1 would fix this, but I just fixed my rgb.txt instead
Log in to post a comment.