From 20a16dc78b884ec2446f29db5c7fba9fcf034e96 Mon Sep 17 00:00:00 2001 From: Dag Wieers Date: Sun, 27 Jan 2008 14:58:32 +0000 Subject: [PATCH] Fix compiler warning wih gcc < 4. git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@211 bc163920-b10d-0410-b2c5-a5491ca2ceef --- basicauth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 );