Mercurial > pidgin
diff src/proxy.c @ 5532:6f35b80c5ffa
[gaim-migrate @ 5932]
(10:04:36) Robot101: LSchiere: alternative way to deal with the magic number - remove it. doesn't crash
when signing on to a HTTP proxy. also resolves the mysterious "unsigned tmp" which appeared a week or few
ago..
committer: Tailor Script <tailor@pidgin.im>
author | Luke Schierer <lschiere@pidgin.im> |
---|---|
date | Mon, 26 May 2003 14:04:53 +0000 |
parents | a2f26666de42 |
children | 9eb5b13fd412 |
line wrap: on
line diff
--- a/src/proxy.c Mon May 26 12:45:05 2003 +0000 +++ b/src/proxy.c Mon May 26 14:04:53 2003 +0000 @@ -785,7 +785,7 @@ if (phb->gpi->proxyuser) { char *t1, *t2; t1 = g_strdup_printf("%s:%s", phb->gpi->proxyuser, phb->gpi->proxypass); - t2 = tobase64(t1, -1); + t2 = tobase64(t1, strlen(t1)); g_free(t1); g_return_if_fail(request_len < sizeof(request)); request_len += g_snprintf(request + request_len, sizeof(request) - request_len, "Proxy-Authorization: Basic %s\r\n", t2);