commit b9351fb397cb428c1aac187fd7919ea554404544
parent 6c5361a05574ea0d0c94df18a627c1256d1224dc
Author: sin <sin@2f30.org>
Date: Thu, 29 May 2014 17:38:17 +0100
Error refers to the output stream
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/installpkg.c b/installpkg.c
@@ -268,7 +268,7 @@ extract(const char *prefix, const char *f)
}
r = archive_write_header(out, entry);
if (r != ARCHIVE_OK) {
- fprintf(stderr, "%s\n", archive_error_string(in));
+ fprintf(stderr, "%s\n", archive_error_string(out));
} else {
while (1) {
r = archive_read_data_block(in, &buf,