1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-27 02:56:18 -04:00

1041: Do not show the "Error parsing" on ftp://sunsite.icm.edu.pl/.

This commit is contained in:
Witold Filipczyk 2008-08-10 10:30:34 +02:00 committed by Kalle Olavi Niemitalo
parent 49f529a582
commit 298f3af6c6

View File

@ -1328,7 +1328,14 @@ ftp_process_dirlist(struct cache_entry *cached, off_t *pos,
}
} else {
ERROR("Error parsing: [%.*s]", line_length, buf);
struct string string;
if (!init_string(&string)) return ret;
add_bytes_to_string(&string, buf, line_length);
add_char_to_string(&string, '\n');
add_fragment(cached, *pos, string.source, string.length);
*pos += string.length;
done_string(&string);
}
}
}