--- subreader.c-orig Tue Dec 4 11:40:51 2001 +++ subreader.c Sat Dec 8 19:23:24 2001 @@ -273,8 +273,14 @@ p=line; // finds the body of the subtitle for (i=0; i<3; i++){ - p=strchr(p,':')+1; - } + p=strchr(p,':'); + if (p==NULL) break; + ++p; + } + if (p==NULL) { + printf("SUB: Skipping incorrect subtitle line!\n"); + continue; + } i=0; if (*p!='|') {