]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/tempfile.c
Merge changes from CUPS 1.5svn-r9000.
[thirdparty/cups.git] / cups / tempfile.c
index 6a781bb710453f1aead83687613437971d7a0d00..1503b4f7da9d1a7bbd23fddfdeb9d4bef46c4b29 100644 (file)
@@ -118,8 +118,8 @@ cupsTempFd(char *filename,          /* I - Pointer to buffer */
     * Format a string using the hex time values...
     */
 
-    snprintf(filename, len - 1, "%s/%05x%08lx", tmpdir, (unsigned)getpid(),
-             (unsigned long)(curtime.tv_sec + curtime.tv_usec + tries));
+    snprintf(filename, len - 1, "%s/%05x%08x", tmpdir, (unsigned)getpid(),
+             (unsigned)(curtime.tv_sec + curtime.tv_usec + tries));
 #endif /* WIN32 */
 
    /*