diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-22 13:41:59 +1000 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2009-04-23 04:44:26 +1000 |
commit | 37ec9a93b0d1ba7d3252f36842155194c7f0c4c0 (patch) | |
tree | fc9373551e8e39d8528910dc0192a2333926c86b /networking | |
parent | 95a9140eceb43d5dba205e171d7a5e09f67331ff (diff) | |
download | busybox-w32-37ec9a93b0d1ba7d3252f36842155194c7f0c4c0.tar.gz busybox-w32-37ec9a93b0d1ba7d3252f36842155194c7f0c4c0.tar.bz2 busybox-w32-37ec9a93b0d1ba7d3252f36842155194c7f0c4c0.zip |
fixes up to 1.6.1
Diffstat (limited to 'networking')
-rw-r--r-- | networking/wget.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c index 2c060d77d..c06a09d72 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -267,11 +267,11 @@ int wget_main(int argc, char **argv) | |||
267 | #if ENABLE_FEATURE_WGET_AUTHENTICATION | 267 | #if ENABLE_FEATURE_WGET_AUTHENTICATION |
268 | if (target.user) { | 268 | if (target.user) { |
269 | fprintf(sfp, "Authorization: Basic %s\r\n", | 269 | fprintf(sfp, "Authorization: Basic %s\r\n", |
270 | base64enc((unsigned char*)target.user, buf, sizeof(buf))); | 270 | base64enc((unsigned char*)target.user, buf, strlen(target.user))); |
271 | } | 271 | } |
272 | if (use_proxy && server.user) { | 272 | if (use_proxy && server.user) { |
273 | fprintf(sfp, "Proxy-Authorization: Basic %s\r\n", | 273 | fprintf(sfp, "Proxy-Authorization: Basic %s\r\n", |
274 | base64enc((unsigned char*)server.user, buf, sizeof(buf))); | 274 | base64enc((unsigned char*)server.user, buf, strlen(server.user))); |
275 | } | 275 | } |
276 | #endif | 276 | #endif |
277 | 277 | ||