diff --git a/rtengine/imageio.cc b/rtengine/imageio.cc index 3ad8faee0..f8edfdd58 100644 --- a/rtengine/imageio.cc +++ b/rtengine/imageio.cc @@ -1227,7 +1227,7 @@ int ImageIO::saveTIFF (Glib::ustring fname, int bps, bool uncompressed) } // buffer for the exif and iptc - int bufferSize = 165535; //TODO: Is it really 165535... or 65535 ? + int bufferSize = 175535; //TODO: Is it really 165535... or 65535 ? if(profileData) { bufferSize += profileLength; diff --git a/rtgui/batchqueue.cc b/rtgui/batchqueue.cc index 7856b72a0..5d91b6ee9 100644 --- a/rtgui/batchqueue.cc +++ b/rtgui/batchqueue.cc @@ -370,7 +370,7 @@ Glib::ustring BatchQueue::getTempFilenameForParams( const Glib::ustring filename timeval tv; gettimeofday(&tv, 0); char mseconds[4]; - sprintf(mseconds, "%d", tv.tv_usec / 1000); + sprintf(mseconds, "%d", (int)(tv.tv_usec / 1000)); time_t rawtime; struct tm *timeinfo; char stringTimestamp [80];