diff --git a/src/searchdhttp.cpp b/src/searchdhttp.cpp index bb9b561c65..8f92dd9fd1 100644 --- a/src/searchdhttp.cpp +++ b/src/searchdhttp.cpp @@ -646,8 +646,9 @@ void HttpRequestParser_c::ParseList ( Str_t sData, OptionsHash_t & hOptions ) { HTTPINFO << "ParseList with " << sData.second << " bytes '" << Data2Log ( sData ) << "'"; - const char * sCur = sData.first; - const char* sLast = sCur; + CSphString sBuf ( sData ); + const char * sCur = sBuf.cstr(); + const char * sLast = sCur; const char * sEnd = sCur + sData.second; Str_t sName = dEmptyStr; @@ -727,7 +728,7 @@ inline void HttpRequestParser_c::FinishParserUrl () if ( ( tUri.field_set & uQuery )!=0 ) { Str_t sRawGetQuery { sData.first + tUri.field_data[UF_QUERY].off, tUri.field_data[UF_QUERY].len }; - if ( m_eType == HTTP_GET ) + if ( m_eType==HTTP_GET ) DecodeAndStoreRawQuery ( m_hOptions, sRawGetQuery ); ParseList ( sRawGetQuery, m_hOptions ); }