aboutsummaryrefslogtreecommitdiff
path: root/wget.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-01 16:49:30 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2001-02-01 16:49:30 +0000
commit69c699cc77a457820836d87ca57e53c67efe6a8a (patch)
tree8fbb91ca75358923724889a558c954cffdf10136 /wget.c
parent9334de44c5774ddb1aaee4bf137760ea096c358a (diff)
downloadbusybox-w32-69c699cc77a457820836d87ca57e53c67efe6a8a.tar.gz
busybox-w32-69c699cc77a457820836d87ca57e53c67efe6a8a.tar.bz2
busybox-w32-69c699cc77a457820836d87ca57e53c67efe6a8a.zip
Fix wget error message and add (and use) chomp library function.
git-svn-id: svn://busybox.net/trunk/busybox@1734 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'wget.c')
-rw-r--r--wget.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/wget.c b/wget.c
index 70f8d1b89..c134427e4 100644
--- a/wget.c
+++ b/wget.c
@@ -216,6 +216,7 @@ int wget_main(int argc, char **argv)
216 /*FALLTHRU*/ 216 /*FALLTHRU*/
217 default: 217 default:
218 close_and_delete_outfile(output, fname_out, do_continue); 218 close_and_delete_outfile(output, fname_out, do_continue);
219 chomp(buf);
219 error_msg_and_die("server returned error %d: %s", atoi(s), buf); 220 error_msg_and_die("server returned error %d: %s", atoi(s), buf);
220 } 221 }
221 222
@@ -532,7 +533,7 @@ progressmeter(int flag)
532 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 533 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
533 * SUCH DAMAGE. 534 * SUCH DAMAGE.
534 * 535 *
535 * $Id: wget.c,v 1.25 2001/01/31 19:00:21 kraai Exp $ 536 * $Id: wget.c,v 1.26 2001/02/01 16:49:30 kraai Exp $
536 */ 537 */
537 538
538 539