Annotation of /trunk/musicbrainz/patches/musicbrainz-2.1.1-gcc4.patch
Parent Directory | Revision Log
Revision 153 -
(hide annotations)
(download)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 670 byte(s)
Tue May 8 20:52:56 2007 UTC (17 years, 4 months ago) by niro
File size: 670 byte(s)
-import
1 | niro | 153 | diff -ur libmusicbrainz-2.1.1/lib/comhttpsocket.cpp libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp |
2 | --- libmusicbrainz-2.1.1/lib/comhttpsocket.cpp 2004-03-16 01:34:22.000000000 +0100 | ||
3 | +++ libmusicbrainz-2.1.1-gcc4/lib/comhttpsocket.cpp 2005-04-27 08:52:55.243936504 +0200 | ||
4 | @@ -194,7 +194,7 @@ | ||
5 | // advance to the data now, if there is any in this first buffer. | ||
6 | char* pData = strstr(HeaderBuffer, "\r\n\r\n"); | ||
7 | if (pData) pData += 4; | ||
8 | - int nOffset = (int)pData - (int)HeaderBuffer; | ||
9 | + ptrdiff_t nOffset = (ptrdiff_t)pData - (ptrdiff_t)HeaderBuffer; | ||
10 | if (nTotal - nOffset >= nLen) // case 1: entire requested read is in header chunk | ||
11 | { | ||
12 | memcpy(pBuffer, pData, nLen); |