diff --git a/src/replication.cpp b/src/replication.cpp index 5fc9d2ecd..8db1b0534 100644 --- a/src/replication.cpp +++ b/src/replication.cpp @@ -3740,7 +3740,7 @@ void syncWithMaster(connection *conn) { auto dt = std::chrono::system_clock::now().time_since_epoch(); auto dtMillisecond = std::chrono::duration_cast(dt); snprintf(tmpfile,sizeof(tmpfile), - "temp-%d.%ld.rdb",(int)dtMillisecond.count(),(long int)getpid()); + "temp-%lld.%ld.rdb",(long long)dtMillisecond.count(),(long int)getpid()); dfd = open(tmpfile,O_CREAT|O_WRONLY|O_EXCL,0644); if (dfd != -1) break; sleep(1);