|
|
@ -2050,8 +2050,8 @@ namespace {
|
|
|
|
pthread_mutex_lock( &cs );
|
|
|
|
pthread_mutex_lock( &cs );
|
|
|
|
std::string tmp = "/tmp/";
|
|
|
|
std::string tmp = "/tmp/";
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
char sCount[12];
|
|
|
|
char sCount[13];
|
|
|
|
sprintf(sCount,"_%d",++count);
|
|
|
|
sprintf(sCount,"_%d",++count); /// \todo replace by std::snprintf on master
|
|
|
|
|
|
|
|
|
|
|
|
std::string result = tmp + Exiv2::toString(pid) + sCount ;
|
|
|
|
std::string result = tmp + Exiv2::toString(pid) + sCount ;
|
|
|
|
if ( Exiv2::fileExists(result) ) std::remove(result.c_str());
|
|
|
|
if ( Exiv2::fileExists(result) ) std::remove(result.c_str());
|
|
|
|