db: fix bug in apk_repository_update()

cute-signatures
Natanael Copa 2009-04-21 08:12:12 +00:00
parent 8a47023d3e
commit 1ae6f9d972
1 changed files with 1 additions and 1 deletions

View File

@ -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;