summaryrefslogtreecommitdiff
blob: c2b07c1783f364dea6cd960d0dde29b3475420ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
diff -ur libmusicbrainz-2.1.1/lib/comhttpsocket.cpp libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp
--- libmusicbrainz-2.1.1/lib/comhttpsocket.cpp	2004-03-16 01:34:22.000000000 +0100
+++ libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp	2005-04-27 08:52:55.243936504 +0200
@@ -194,7 +194,7 @@
 	// advance to the data now, if there is any in this first buffer. 
 	char* pData = strstr(HeaderBuffer, "\r\n\r\n");
 	if (pData) pData += 4;
-	int nOffset = (int)pData - (int)HeaderBuffer;
+	ptrdiff_t nOffset = (ptrdiff_t)pData - (ptrdiff_t)HeaderBuffer;
 	if (nTotal - nOffset >= nLen) // case 1: entire requested read is in header chunk
 	{
 		memcpy(pBuffer, pData, nLen);