Fixed nasty segfault bug from Local settings page. It does not segfault anymore.
This commit is contained in:
parent
c0ccde0d56
commit
d7e9029609
1 changed files with 2 additions and 2 deletions
|
@ -81,8 +81,8 @@ namespace Converter {
|
|||
continue;
|
||||
}
|
||||
std::string fileName = entry->d_name;
|
||||
std::string myPath = std::string(myPath + (myPath[myPath.size()-1] == '/' ? "" : "/") + entry->d_name);
|
||||
cmd[1] = (char*)myPath.c_str();
|
||||
std::string mijnPad = std::string(myPath + (myPath[myPath.size()-1] == '/' ? "" : "/") + entry->d_name);
|
||||
cmd[1] = (char*)mijnPad.c_str();
|
||||
int outFD = -1;
|
||||
Util::Procs::StartPiped("MistInfo", &cmd[0], 0, &outFD, 0);
|
||||
while( Util::Procs::isActive("MistInfo")){ Util::sleep(10); }
|
||||
|
|
Loading…
Add table
Reference in a new issue