[Opalvoip-svn] SF.net SVN: opalvoip:[24427] ptlib/branches/v2_8
Brought to you by:
csoutheren,
rjongbloed
From: <rjo...@us...> - 2010-05-31 06:19:50
|
Revision: 24427 http://opalvoip.svn.sourceforge.net/opalvoip/?rev=24427&view=rev Author: rjongbloed Date: 2010-05-31 06:19:44 +0000 (Mon, 31 May 2010) Log Message: ----------- Fixed another secondary bug exposed by fixing PString::SetSize(), thanks David Corrie Modified Paths: -------------- ptlib/branches/v2_8/src/ptclib/httpclnt.cxx Property Changed: ---------------- ptlib/branches/v2_8/ Property changes on: ptlib/branches/v2_8 ___________________________________________________________________ Modified: svn:mergeinfo - /opal/branches/v3_6:23595 /ptlib/branches/csoutheren/LalandeBranch1:23331-23333,23723 /ptlib/branches/v2_2:20746,20791,20827,22014,22942 /ptlib/branches/v2_4:21086,21094,21147,21160,21185,21281,21296,21305,21322,21337,21363,21467,21471-21472,21506,21508,21623,21695,21744,21746,21763,22241,22958,23045-23046,23061,23066,23712 /ptlib/branches/v2_6:22195,22243,22295,22304,22311,22317,22320,22356,22458,22509,22587,22601-22602,22611,22629,22633,22673,22681,22729,22731-22732,22736,22742,22848,22960,22992,23161,23163,23167,23169,23177,23239,23291,23298,23336,23429,23595,23823,23827,23873 /ptlib/trunk:3-22106,24179,24185,24187,24231,24248,24263,24275,24284,24354,24356,24358,24379 + /opal/branches/v3_6:23595 /ptlib/branches/csoutheren/LalandeBranch1:23331-23333,23723 /ptlib/branches/v2_2:20746,20791,20827,22014,22942 /ptlib/branches/v2_4:21086,21094,21147,21160,21185,21281,21296,21305,21322,21337,21363,21467,21471-21472,21506,21508,21623,21695,21744,21746,21763,22241,22958,23045-23046,23061,23066,23712 /ptlib/branches/v2_6:22195,22243,22295,22304,22311,22317,22320,22356,22458,22509,22587,22601-22602,22611,22629,22633,22673,22681,22729,22731-22732,22736,22742,22848,22960,22992,23161,23163,23167,23169,23177,23239,23291,23298,23336,23429,23595,23823,23827,23873 /ptlib/trunk:3-22106,24179,24185,24187,24231,24248,24263,24275,24284,24354,24356,24358,24379,24426 Modified: ptlib/branches/v2_8/src/ptclib/httpclnt.cxx =================================================================== --- ptlib/branches/v2_8/src/ptclib/httpclnt.cxx 2010-05-31 06:16:24 UTC (rev 24426) +++ ptlib/branches/v2_8/src/ptclib/httpclnt.cxx 2010-05-31 06:19:44 UTC (rev 24427) @@ -281,9 +281,12 @@ PBoolean PHTTPClient::ReadContentBody(PMIMEInfo & replyMIME, PString & body) { - PBoolean ok = InternalReadContentBody(replyMIME, &body); - body.SetSize(body.GetSize()+1); - return ok; + PCharArray rawBody; + if (!InternalReadContentBody(replyMIME, &rawBody)) + return false; + + body = PString(rawBody, rawBody.GetSize()); + return true; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |