summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
authorGlenn L McGrath2003-12-27 00:21:47 +0000
committerGlenn L McGrath2003-12-27 00:21:47 +0000
commitf980bd5848747aa986890e9f1c30dec947ff8ecd (patch)
tree48f3be27689acfcb3d80b1c271a963bd2546a282 /networking
parent6caa073760f18c77237e717f8807d73b4126a8f4 (diff)
downloadbusybox-f980bd5848747aa986890e9f1c30dec947ff8ecd.zip
busybox-f980bd5848747aa986890e9f1c30dec947ff8ecd.tar.gz
Fix a bug of mine, identified by Stephane Billiart
Diffstat (limited to 'networking')
-rw-r--r--networking/wget.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/networking/wget.c b/networking/wget.c
index 9f5dbaf..8bed736 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 $
*/