From aca6c19678e2074e2919ac8d1fc4fcc517693624 Mon Sep 17 00:00:00 2001 From: Guido L Date: Fri, 3 Feb 2017 09:53:48 +0100 Subject: [PATCH] Update PVRIptvData.cpp --- src/PVRIptvData.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/PVRIptvData.cpp b/src/PVRIptvData.cpp index a526edd8c..57ad22e96 100644 --- a/src/PVRIptvData.cpp +++ b/src/PVRIptvData.cpp @@ -101,7 +101,7 @@ void PVRIptvData::LoadSettings() { const char *fmt = "%s_%i"; float fShift; char nameBuffer[128]; - char valueBuffer[1024]; + char valueBuffer[4096]; int iPathType = 0; int iSourceCount = 1; @@ -522,8 +522,8 @@ bool PVRIptvData::LoadPlayList(PVRIptvSource &source, int &iChannelIndex, int &i tmpChannel.strTvgLogo = ""; tmpChannel.iTvgShift = 0; - char szLine[1024]; - while(stream.getline(szLine, 1024)) + char szLine[4096]; + while(stream.getline(szLine, 4096)) { std::string strLine(szLine); @@ -597,7 +597,7 @@ bool PVRIptvData::LoadPlayList(PVRIptvSource &source, int &iChannelIndex, int &i if (strTvgId.empty()) { - char buff[255]; + char buff[1024]; sprintf(buff, "%d", atoi(strInfoLine.c_str())); strTvgId.append(buff); } @@ -942,8 +942,8 @@ int PVRIptvData::GetFileContents(std::string& url, std::string &strContent) void* fileHandle = XBMC->OpenFile(url.c_str(), 0); if (fileHandle) { - char buffer[1024]; - while (int bytesRead = XBMC->ReadFile(fileHandle, buffer, 1024)) + char buffer[4096]; + while (int bytesRead = XBMC->ReadFile(fileHandle, buffer, 4096)) strContent.append(buffer, bytesRead); XBMC->CloseFile(fileHandle); }