From 335bd1353c23d54c0de5facd9f5d46cebffbfbbc Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Mon, 18 Mar 2013 16:49:42 +0400 Subject: [PATCH] gui/movieplayer.cpp: increase buffer to read m3u contents Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/fe99c5fdda4117ff7d823c004c3bba48d2d69601 Author: [CST] Focus Date: 2013-03-18 (Mon, 18 Mar 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/gui/movieplayer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/movieplayer.cpp b/src/gui/movieplayer.cpp index 4dabf150f..278650302 100644 --- a/src/gui/movieplayer.cpp +++ b/src/gui/movieplayer.cpp @@ -358,12 +358,12 @@ bool CMoviePlayerGui::SelectFile() ret = true; if(file->getType() == CFile::FILE_PLAYLIST) { std::ifstream infile; - char cLine[256]; - char name[255] = { 0 }; + char cLine[1024]; + char name[1024] = { 0 }; infile.open(file->Name.c_str(), std::ifstream::in); while (infile.good()) { - infile.getline(cLine, 255); + infile.getline(cLine, sizeof(cLine)); if (cLine[strlen(cLine)-1]=='\r') cLine[strlen(cLine)-1]=0;