From 44f4544003ab066764db69f195d417ced6978fb7 Mon Sep 17 00:00:00 2001 From: Denys Nykula Date: Tue, 11 Feb 2020 14:35:50 +0200 Subject: Fix wget version concat segfault. --- toys/pending/wget.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'toys/pending/wget.c') 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 -- cgit v1.2.3