bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Tim Rühsen
Subject: [Bug-wget] [PATCH] replaced read_whole_file() by getline()
Date: Sat, 11 May 2013 17:31:08 +0200
User-agent: KMail/1.13.7 (Linux/3.8-1-amd64; KDE/4.8.4; x86_64; ; )

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

Attachment: 0002-replaced-read_whole_file-by-getline.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]