diff options
author | Moritz C. Weber <mo.c.weber@gmail.com> | 2022-03-29 09:35:53 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2022-04-03 11:21:16 -0500 |
commit | 1189bf9857252f6bddbe9535730ce0ae6552c999 (patch) | |
tree | 1b06d6734472ebd3a3c61b660ed11372af96a182 | |
parent | 72e7e3821b4a0cce07e6d1450efef09ca9d3a5db (diff) | |
download | toybox-1189bf9857252f6bddbe9535730ce0ae6552c999.tar.gz |
Replaced sizeof by strlen in wget POST
-rw-r--r-- | toys/pending/wget.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |