diff --git a/basicauth.c b/basicauth.c index 8ab54b8..ea2b925 100644 --- a/basicauth.c +++ b/basicauth.c @@ -32,7 +32,7 @@ * is stored in basicauth. */ char *basicauth(char *user, char *pass) { - char b64str[80]; /* Buffer to hold the proxies basic authentication data */ + char *b64str = malloc(80); int len = strlen( user ) + strlen( pass ) + 2; char *p = (char *) malloc( len );