diff options
author | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-12-09 18:36:59 +0000 |
---|---|---|
committer | msweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be> | 2009-12-09 18:36:59 +0000 |
commit | ef55b7453303a9a2b20590815c967d044a13da1d (patch) | |
tree | 948eaac8dcc2bfdff77ca367ea8ff058cda8c109 /cups/tempfile.c | |
parent | 3fb9c47ea669977c856ad82b3ea593ec76d136ec (diff) | |
download | cups-ef55b7453303a9a2b20590815c967d044a13da1d.tar.gz |
Merge changes from CUPS 1.5svn-r8916.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1766 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/tempfile.c')
-rw-r--r-- | cups/tempfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cups/tempfile.c b/cups/tempfile.c index 664b915f8..6a781bb71 100644 --- a/cups/tempfile.c +++ b/cups/tempfile.c @@ -118,8 +118,8 @@ cupsTempFd(char *filename, /* I - Pointer to buffer */ * Format a string using the hex time values... */ - snprintf(filename, len - 1, "%s/%08lx%05lx", tmpdir, - (unsigned long)curtime.tv_sec, (unsigned long)curtime.tv_usec); + snprintf(filename, len - 1, "%s/%05x%08lx", tmpdir, (unsigned)getpid(), + (unsigned long)(curtime.tv_sec + curtime.tv_usec + tries)); #endif /* WIN32 */ /* |