From e3f9a5f05267fb24433d0868c39b5ac0e8f2030d Mon Sep 17 00:00:00 2001 From: Colin Leroy-Mira Date: Sat, 14 Jun 2025 13:02:28 +0200 Subject: [PATCH] Make sure pid and counter don't interfere --- src/common/fname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/fname.c b/src/common/fname.c index 7c52869e2..10d38f38a 100644 --- a/src/common/fname.c +++ b/src/common/fname.c @@ -169,7 +169,7 @@ char* MakeTmpFilename (const char *Directory, const char *Origin, const char* Ex Len += strlen (Origin) + (strlen (".2147483648") * 2) + strlen (Ext) + 1; Out = xmalloc (Len); - snprintf (Out, Len, "%s%s.%u%u%s", (Directory != NULL ? Directory : ""), + snprintf (Out, Len, "%s%s.%u.%u%s", (Directory != NULL ? Directory : ""), FindName(Origin), getpid(), Counter, Ext); Counter++;