diff options
author | Matt Kraai | 2001-02-01 16:49:30 +0000 |
---|---|---|
committer | Matt Kraai | 2001-02-01 16:49:30 +0000 |
commit | 05e782ddd3dc58245c889529bb8aeeaddf24bf71 (patch) | |
tree | 8fbb91ca75358923724889a558c954cffdf10136 /wget.c | |
parent | bd018b1babf0521b8e740abb6473133c1c4c35d2 (diff) | |
download | busybox-05e782ddd3dc58245c889529bb8aeeaddf24bf71.zip busybox-05e782ddd3dc58245c889529bb8aeeaddf24bf71.tar.gz |
Fix wget error message and add (and use) chomp library function.
Diffstat (limited to 'wget.c')
-rw-r--r-- | wget.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -216,6 +216,7 @@ int wget_main(int argc, char **argv) /*FALLTHRU*/ default: close_and_delete_outfile(output, fname_out, do_continue); + chomp(buf); error_msg_and_die("server returned error %d: %s", atoi(s), buf); } @@ -532,7 +533,7 @@ progressmeter(int flag) * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: wget.c,v 1.25 2001/01/31 19:00:21 kraai Exp $ + * $Id: wget.c,v 1.26 2001/02/01 16:49:30 kraai Exp $ */ |