diff options
Diffstat (limited to 'xdelta3/testing/file.h')
-rw-r--r-- | xdelta3/testing/file.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xdelta3/testing/file.h b/xdelta3/testing/file.h index c6f3c7b..19b4688 100644 --- a/xdelta3/testing/file.h +++ b/xdelta3/testing/file.h | |||
@@ -313,7 +313,8 @@ public: | |||
313 | static int static_counter = 0; | 313 | static int static_counter = 0; |
314 | pid_t pid = getpid(); | 314 | pid_t pid = getpid(); |
315 | char buf[64]; | 315 | char buf[64]; |
316 | snprintf(buf, 64, "/tmp/regtest.%d.%d", pid, static_counter++); | 316 | xoff_t xpid = pid; |
317 | snprintf(buf, 64, "/tmp/regtest.%"Q"u.%d", xpid, static_counter++); | ||
317 | filename_.append(buf); | 318 | filename_.append(buf); |
318 | unlink(filename_.c_str()); | 319 | unlink(filename_.c_str()); |
319 | } | 320 | } |