Magellan Linux

Contents of /trunk/musicbrainz/patches/musicbrainz-2.1.1-gcc4.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 153 - (show annotations) (download)
Tue May 8 20:52:56 2007 UTC (17 years ago) by niro
File size: 670 byte(s)
-import

1 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);