Skip to content

Commit

Permalink
Update PVRIptvData.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
LipkeGu committed Feb 3, 2017
1 parent ba45cbd commit aca6c19
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/PVRIptvData.cpp
Expand Up @@ -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;

Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
}
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit aca6c19

Please sign in to comment.