diff options
author | Denys Nykula <nykula@ukr.net> | 2020-02-11 14:35:50 +0200 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-02-11 20:28:04 -0600 |
commit | 44f4544003ab066764db69f195d417ced6978fb7 (patch) | |
tree | 2db836aa1b87c36ce3cbe0f7147c2851290718ed | |
parent | 8cfcf6d01d86655efec09353fb8f4db0c65e420a (diff) | |
download | toybox-44f4544003ab066764db69f195d417ced6978fb7.tar.gz |
Fix wget version concat segfault.
-rw-r--r-- | toys/pending/wget.c | 3 |
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 |