Mercurial > pidgin
diff src/proxy.c @ 13698:6bee2e80e42c
[gaim-migrate @ 16101]
Additional constification, add some comments, remove some
superfluous whitespace, and changed gchar to guint8 in a
few places.
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Fri, 28 Apr 2006 03:52:09 +0000 |
parents | 3eba1e7458c7 |
children | c502ed5ae9f6 |
line wrap: on
line diff
--- a/src/proxy.c Fri Apr 28 03:39:14 2006 +0000 +++ b/src/proxy.c Fri Apr 28 03:52:09 2006 +0000 @@ -1207,7 +1207,8 @@ if(status == 407 /* Proxy Auth */) { gchar *ntlm; if((ntlm = g_strrstr((const gchar *)phb->read_buffer, "Proxy-Authenticate: NTLM "))) { /* Check for Type-2 */ - gchar *nonce = ntlm; + gchar *tmp = ntlm; + guint8 *nonce; gchar *domain = (gchar*)gaim_proxy_info_get_username(phb->gpi); gchar *username; gchar *request; @@ -1230,8 +1231,8 @@ *username = '\0'; username++; ntlm += strlen("Proxy-Authenticate: NTLM "); - while(*nonce != '\r' && *nonce != '\0') nonce ++; - *nonce = '\0'; + while(*tmp != '\r' && *tmp != '\0') tmp++; + *tmp = '\0'; nonce = gaim_ntlm_parse_type2(ntlm, NULL); response = gaim_ntlm_gen_type3(username, (gchar*) gaim_proxy_info_get_password(phb->gpi),