From fe7c6fee348a3263ce0c97a83547749725f681cb Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 8 Feb 2014 13:21:50 +0100 Subject: ArchivePlugin: pass Path to open() --- src/archive/plugins/ZzipArchivePlugin.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/archive/plugins/ZzipArchivePlugin.cxx') diff --git a/src/archive/plugins/ZzipArchivePlugin.cxx b/src/archive/plugins/ZzipArchivePlugin.cxx index 5ae3ace8d..716b56160 100644 --- a/src/archive/plugins/ZzipArchivePlugin.cxx +++ b/src/archive/plugins/ZzipArchivePlugin.cxx @@ -28,6 +28,7 @@ #include "../ArchiveVisitor.hxx" #include "input/InputStream.hxx" #include "input/InputPlugin.hxx" +#include "fs/Path.hxx" #include "util/RefCount.hxx" #include "util/Error.hxx" #include "util/Domain.hxx" @@ -70,12 +71,12 @@ static constexpr Domain zzip_domain("zzip"); /* archive open && listing routine */ static ArchiveFile * -zzip_archive_open(const char *pathname, Error &error) +zzip_archive_open(Path pathname, Error &error) { - ZZIP_DIR *dir = zzip_dir_open(pathname, nullptr); + ZZIP_DIR *dir = zzip_dir_open(pathname.c_str(), nullptr); if (dir == nullptr) { error.Format(zzip_domain, "Failed to open ZIP file %s", - pathname); + pathname.c_str()); return nullptr; } -- cgit v1.2.3