Fix compiler warning wih gcc < 4.

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@211 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Dag Wieers 2008-01-27 14:58:32 +00:00
parent f7e3964acd
commit 20a16dc78b

View file

@ -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 );