summaryrefslogtreecommitdiff
blob: 0ef88b6470e23f5e7076fa402aa7ccf02c93766a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -ur mutella-0.4.5.old/mutella/uiremote.cpp mutella-0.4.5/mutella/uiremote.cpp
--- mutella-0.4.5.old/mutella/uiremote.cpp	2009-07-09 04:38:28.583840188 +0300
+++ mutella-0.4.5/mutella/uiremote.cpp	2009-07-09 04:40:48.955839846 +0300
@@ -575,11 +575,11 @@
 	{
 		// login -- HTTP-Basic so far
 		bool bLoginOK = false;
-		char * pszAuth = NULL;
+		const char * pszAuth = NULL;
 		if ( (pszAuth = strstr(szHandshake, "Authorization:")) )
 		{
 			// extract authorization line
-			char * pRN = strstr(pszAuth, "\r\n");
+			const char * pRN = strstr(pszAuth, "\r\n");
 			CString sAuthLine(pszAuth + strlen("Authorization:"), pRN-pszAuth-strlen("Authorization:"));
 			int nPos = sAuthLine.find("Basic");
 			if (nPos>=0)
@@ -616,7 +616,7 @@
 	const char* pszCookie;
 	if( (pszCookie = strstr(szHandshake, "Cookie:")) )
 	{
-		char * pRN = strstr(pszCookie, "\r\n");
+		const char * pRN = strstr(pszCookie, "\r\n");
 		CString sCookieLine(pszCookie + strlen("Cookie:"), pRN-pszCookie-strlen("Cookie:"));
 		// we will split the line by "; " combination
 		list<CString> Cookies;