summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-07-16 19:55:37 +0100
committerTimo Teräs <timo.teras@iki.fi>2021-07-23 13:37:17 +0300
commit6c41c6f32eda9a58de6ba36b9cc715aaf090181c (patch)
treed02db11b2cfe940c3a6e7467e94b19fd30fb775e
parent33e85fb1f12b1df3a1581037267926e1e9e8aa24 (diff)
downloadapk-tools-6c41c6f32eda9a58de6ba36b9cc715aaf090181c.tar.gz
apk-tools-6c41c6f32eda9a58de6ba36b9cc715aaf090181c.tar.bz2
apk-tools-6c41c6f32eda9a58de6ba36b9cc715aaf090181c.tar.xz
apk-tools-6c41c6f32eda9a58de6ba36b9cc715aaf090181c.zip
extract: fix uvol parameter order
-rw-r--r--src/app_extract.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_extract.c b/src/app_extract.c
index f292b61..89af6db 100644
--- a/src/app_extract.c
+++ b/src/app_extract.c
@@ -146,7 +146,7 @@ static int apk_extract_volume(struct apk_ctx *ac, struct apk_file_info *fi, stru
int r;
snprintf(size, sizeof size, "%ju", fi->size);
- r = uvol_run(ac, "create", fi->name, "ro", size);
+ r = uvol_run(ac, "create", fi->name, size, "ro");
if (r != 0) return r;
return uvol_extract(ac, fi->name, size, fi->size, is, dctx);
}