This commit is contained in:
thrust26 2018-09-11 10:54:39 +02:00
parent e129391dbd
commit 27022ad3a9
1 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class StringParser
while((beg + maxlen) < size)
{
size_t spos = line.find_last_of(' ', beg + len);
if(spos > beg)
if(spos != string::npos && spos > beg)
len = spos - beg;
myStringList.push_back(line.substr(beg, len));