1 --- lynx2-8-6/WWW/Library/Implementation/HTFile.c.orig 2006-05-30 00:44:54.000000000 +0200
2 +++ lynx2-8-6/WWW/Library/Implementation/HTFile.c 2007-02-25 21:40:38.930317847 +0100
5 if (HTStat(localname, &dir_info) == -1) /* get file information */
7 - /* if can't read file information */
8 + char *tmp_localname = (char *)malloc(strlen(localname) + 4);
9 CTRACE((tfp, "HTLoadFile: can't stat %s\n", localname));
11 + if (tmp_localname) {
12 + stpcpy( stpcpy( tmp_localname, localname), ".gz" );
14 + localname = tmp_localname;
16 + /* if can't read file information */
18 } else { /* Stat was OK */
20 if (S_ISDIR(dir_info.st_mode)) {