diff --git a/src/misc/programs.cpp b/src/misc/programs.cpp index f4e34f7f..15449644 100644 --- a/src/misc/programs.cpp +++ b/src/misc/programs.cpp @@ -632,7 +632,7 @@ void CONFIG::Run(void) { if ((equpos != std::string::npos) && ((spcpos == std::string::npos) || (equpos < spcpos))) { // If we have a '=' possibly before a ' ' split on the = - pvars.insert(++pvars.begin(),pvars[0].substr(equpos+1)); + pvars.insert(pvars.begin()+1,pvars[0].substr(equpos+1)); pvars[0].erase(equpos); // As we had a = the first thing must be a property now Section* sec=control->GetSectionFromProperty(pvars[0].c_str()); @@ -646,7 +646,7 @@ void CONFIG::Run(void) { if ((spcpos != std::string::npos) && ((equpos == std::string::npos) || (spcpos < equpos))) { // ' ' before a possible '=', split on the ' ' - pvars.insert(++pvars.begin(),pvars[0].substr(spcpos+1)); + pvars.insert(pvars.begin()+1,pvars[0].substr(spcpos+1)); pvars[0].erase(spcpos); } // check if the first parameter is a section or property