From 1ae6f9d972456ace0d3e4b099ba1933c93d58e88 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 21 Apr 2009 08:12:12 +0000 Subject: [PATCH] db: fix bug in apk_repository_update() --- src/database.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;