summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/arbits/slbt_archive_store.c4
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)