From 26bdd65263aab7cbfb48c2ed614d21a4d6cd6da3 Mon Sep 17 00:00:00 2001 From: Oscar Benjamin Date: Sun, 6 Aug 2023 19:18:05 +0100 Subject: [PATCH] Use uUnique=0 in GetTempFileNameA --- src/qsieve/factor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/qsieve/factor.c b/src/qsieve/factor.c index 7852de9d93..530a2f52da 100644 --- a/src/qsieve/factor.c +++ b/src/qsieve/factor.c @@ -220,7 +220,8 @@ void qsieve_factor(fmpz_factor_t factors, const fmpz_t n) flint_printf("Exception (qsieve_factor). GetTempPathA() failed.\n"); flint_abort(); } - if (GetTempFileNameA(temp_path, "siqs", /*uUnique*/ TRUE, qs_inf->fname) == 0) + /* uUnique = 0 means the we *do* want a unique filename (obviously!). */ + if (GetTempFileNameA(temp_path, "siq", /*uUnique*/ 0, qs_inf->fname) == 0) { flint_printf("Exception (qsieve_factor). GetTempFileNameA() failed.\n"); flint_abort();