diff options
-rw-r--r-- | src/database.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/database.c b/src/database.c index 0957d2d..2af55bf 100644 --- a/src/database.c +++ b/src/database.c @@ -955,7 +955,7 @@ int apk_repository_update(struct apk_database *db, struct apk_repository *repo) if (r < 0) return r; - snprintf(tmp2, sizeof(tmp2), "%svar/lib/apk/%s", + snprintf(tmp, sizeof(tmp), "%svar/lib/apk/%s", db->root, repo->cache); if (rename(tmp2, tmp) < 0) return -errno; |