[Bug-wget] [PATCH] Regression since wget 1.10: no_prefix function is *bad*

2013-05-11 Thread Tim Rühsen
Hi Martin, having an abort() without a message is simply a big waste of time for any developer who stumbles upon it. Since the init code of Wget has to be rewritten anyways, i provide the fastest solution right now: increasing the buffer size and printing a message before Wget aborts. And

[Bug-wget] [PATCH] bit cleanup in utils.c

2013-05-11 Thread Tim Rühsen
I replaced some hand-written string code by standard library functions. In any case these functions may be found in gnulib as well. Regards, Tim From d540fd5dbd3644936a8ad1a384516abba10de268 Mon Sep 17 00:00:00 2001 From: Tim Ruehsen tim.rueh...@gmx.de Date: Thu, 9 May 2013 19:53:36 +0200

[Bug-wget] [PATCH] replaced read_whole_file() by getline()

2013-05-11 Thread Tim Rühsen
Replaced read_whole_file(), which needs one malloc/free per line, by getline() which reuses a growable buffer. getline() is a GNU function (but Wget is a GNU tool, isn't it ? :-). Since Wget compiles/links with gnulib, I don't see a problem here. Regards, Tim From