some fixes from 4.2.0 that might be important formoench

This commit is contained in:
2020-06-19 13:30:56 +02:00
parent 8747ca04f3
commit bce4a615fa
8 changed files with 27 additions and 12 deletions

View File

@ -93,7 +93,7 @@ class fileIO : public fileIOStatic, public virtual slsDetectorBase {
*/
virtual std::string setFilePath(std::string s) {
pthread_mutex_lock(&mf);
sprintf(filePath, s.c_str());
sprintf(filePath, "%s", s.c_str());
pthread_mutex_unlock(&mf);
return std::string(filePath);
};