gui/movieplayer.cpp: increase buffer to read m3u contents

This commit is contained in:
[CST] Focus
2013-03-18 16:49:42 +04:00
parent f57c77bbc3
commit fe99c5fdda

View File

@@ -358,12 +358,12 @@ bool CMoviePlayerGui::SelectFile()
ret = true; ret = true;
if(file->getType() == CFile::FILE_PLAYLIST) { if(file->getType() == CFile::FILE_PLAYLIST) {
std::ifstream infile; std::ifstream infile;
char cLine[256]; char cLine[1024];
char name[255] = { 0 }; char name[1024] = { 0 };
infile.open(file->Name.c_str(), std::ifstream::in); infile.open(file->Name.c_str(), std::ifstream::in);
while (infile.good()) while (infile.good())
{ {
infile.getline(cLine, 255); infile.getline(cLine, sizeof(cLine));
if (cLine[strlen(cLine)-1]=='\r') if (cLine[strlen(cLine)-1]=='\r')
cLine[strlen(cLine)-1]=0; cLine[strlen(cLine)-1]=0;