From 1189bf9857252f6bddbe9535730ce0ae6552c999 Mon Sep 17 00:00:00 2001 From: "Moritz C. Weber" Date: Tue, 29 Mar 2022 09:35:53 +0000 Subject: [PATCH] Replaced sizeof by strlen in wget POST --- toys/pending/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toys/pending/wget.c b/toys/pending/wget.c index 4a961b0a..de8a117f 100644 --- a/toys/pending/wget.c +++ b/toys/pending/wget.c @@ -280,7 +280,7 @@ void wget_main(void) "User-Agent: %s\r\nConnection: close\r\n" "Content-Length: %ld\r\n\r\n" "%s", - path, host, agent, sizeof(TT.postdata), TT.postdata); + path, host, agent, strlen(TT.postdata), TT.postdata); } if (FLAG(d)) printf("--- Request\n%s", toybuf); -- 2.39.2