diff -urN busybox-1.5.0/Makefile busybox-1.5.0.new/Makefile --- busybox-1.5.0/Makefile 2007-03-23 06:26:32.000000000 +0800 +++ busybox-1.5.0.new/Makefile 2007-06-21 17:16:37.000000000 +0800 @@ -172,8 +172,8 @@ # Default value for CROSS_COMPILE is not to prefix executables # Note: Some architectures assign CROSS_COMPILE in their arch/*/Makefile -ARCH ?= $(SUBARCH) -CROSS_COMPILE ?= +ARCH = arm +CROSS_COMPILE = arm-linux- # Architecture as present in compile.h UTS_MACHINE := $(ARCH) diff -urN busybox-1.5.0/networking/wget.c busybox-1.5.0.new/networking/wget.c --- busybox-1.5.0/networking/wget.c 2007-03-23 04:21:23.000000000 +0800 +++ busybox-1.5.0.new/networking/wget.c 2007-07-08 20:21:17.000000000 +0800 @@ -274,11 +274,11 @@ #if ENABLE_FEATURE_WGET_AUTHENTICATION if (target.user) { fprintf(sfp, "Authorization: Basic %s
", - base64enc((unsigned char*)target.user, buf, sizeof(buf))); + base64enc((unsigned char*)target.user, buf, strlen(target.user))); } if (use_proxy && server.user) { fprintf(sfp, "Proxy-Authorization: Basic %s
", - base64enc((unsigned char*)server.user, buf, sizeof(buf))); + base64enc((unsigned char*)server.user, buf, strlen(target.user))); } #endif |