--- WWW/Library/Implementation/HTGopher.c.old 2005-01-03 00:35:21.000000000 +0100 +++ WWW/Library/Implementation/HTGopher.c 2005-09-24 20:39:17.046628248 +0200 @@ -455,7 +455,7 @@ static void parse_cso(const char *arg, int ich; char line[BIG]; char *p = line; - char *second_colon, last_char = '\0'; + char *first_colon, *second_colon, last_char = '\0'; const char *title; START(HTML_HEAD); @@ -524,7 +524,11 @@ static void parse_cso(const char *arg, /* * Find the second_colon. */ - second_colon = strchr(strchr(p, ':') + 1, ':'); + second_colon = NULL; + first_colon = strchr(p, ':'); + if (first_colon != NULL) { + second_colon = strchr(first_colon + 1, ':'); + } if (second_colon != NULL) { /* error check */