From: Glenn L McGrath Date: Sat, 27 Dec 2003 00:21:47 +0000 (-0000) Subject: Fix a bug of mine, identified by Stephane Billiart X-Git-Tag: 1_00_pre6~76 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f980bd5848747aa986890e9f1c30dec947ff8ecd;p=oweals%2Fbusybox.git Fix a bug of mine, identified by Stephane Billiart --- diff --git a/networking/wget.c b/networking/wget.c index 9f5dbaf21..8bed7369f 100644 --- a/networking/wget.c +++ b/networking/wget.c @@ -582,9 +582,8 @@ void parse_url(char *url, struct host_info *h) cp = strchr(pp, ':'); if (cp != NULL) { *cp++ = '\0'; - h->port = atoi(cp); + h->port = htons(atoi(cp)); } - } @@ -835,7 +834,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.63 2003/12/20 01:47:18 bug1 Exp $ + * $Id: wget.c,v 1.64 2003/12/27 00:21:47 bug1 Exp $ */