aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorDenys Nykula <nykula@ukr.net>2020-02-11 14:35:50 +0200
committerRob Landley <rob@landley.net>2020-02-11 20:28:04 -0600
commit44f4544003ab066764db69f195d417ced6978fb7 (patch)
tree2db836aa1b87c36ce3cbe0f7147c2851290718ed /toys/pending
parent8cfcf6d01d86655efec09353fb8f4db0c65e420a (diff)
downloadtoybox-44f4544003ab066764db69f195d417ced6978fb7.tar.gz
Fix wget version concat segfault.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/wget.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/toys/pending/wget.c b/toys/pending/wget.c
index 16672a24..21d44466 100644
--- a/toys/pending/wget.c
+++ b/toys/pending/wget.c
@@ -144,8 +144,7 @@ void wget_main(void)
if(!toys.optargs[0]) help_exit("no URL");
get_info(toys.optargs[0], hostname, port, path);
-
- sprintf("/%s", TOYBOX_VERSION);
+ sprintf(ua+11, "/%s", TOYBOX_VERSION);
for (;; redirects--) {
sock = conn_svr(hostname, port);
// compose HTTP request