Fix a warning and a crash

This commit is contained in:
heckflosse
2016-07-02 23:03:58 +02:00
parent 45d307bf40
commit 2710bcdcec
2 changed files with 2 additions and 2 deletions

View File

@@ -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];