From c250d4dcf9df9f5889a07a57291617d1360160bf Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 18 Feb 2024 18:04:30 +0000 Subject: slbt_store_archive(): tmpfile name pattern: conform to the %p format specifier. --- src/arbits/slbt_archive_store.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/arbits/slbt_archive_store.c b/src/arbits/slbt_archive_store.c index d8281b0..a70e307 100644 --- a/src/arbits/slbt_archive_store.c +++ b/src/arbits/slbt_archive_store.c @@ -41,6 +41,7 @@ int slbt_store_archive( struct stat st; int fdat; int fdtmp; + void * addr; char * mark; char * slash; size_t buflen; @@ -72,6 +73,7 @@ int slbt_store_archive( fdat = slbt_driver_fdcwd(dctx); + addr = buf; mark = (slash = strrchr(buf,'/')) ? slash : buf; @@ -98,7 +100,7 @@ int slbt_store_archive( ".pid.%d" ".tmp", st.st_ino, - time(0),&buf, + time(0),addr, getpid()); if (nbytes >= buflen) -- cgit v1.2.3