diff options
author | midipix <writeonce@midipix.org> | 2024-02-18 18:04:30 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2024-02-18 18:08:32 +0000 |
commit | c250d4dcf9df9f5889a07a57291617d1360160bf (patch) | |
tree | c29fb2a5fc4ba0904bf319937c76f10a836c7775 /src | |
parent | 9feb47215a7730a9efcbacc25d8ff02e861a8527 (diff) | |
download | slibtool-c250d4dcf9df9f5889a07a57291617d1360160bf.tar.bz2 slibtool-c250d4dcf9df9f5889a07a57291617d1360160bf.tar.xz |
slbt_store_archive(): tmpfile name pattern: conform to the %p format specifier.
Diffstat (limited to 'src')
-rw-r--r-- | src/arbits/slbt_archive_store.c | 4 |
1 files changed, 3 insertions, 1 deletions
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) |