aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-11-06 09:20:16 +0100
committerMax Kellermann <max@duempel.org>2015-11-06 09:20:18 +0100
commit493f74d94dd6ebf5f185ce68d17a0110516c7337 (patch)
tree072539d627ade83e9c71283f7d40afecc6ae1ccb
parent3b71e2abefd50dbb6548712f13aea28701e72317 (diff)
downloadmpd-493f74d94dd6ebf5f185ce68d17a0110516c7337.tar.gz
mpd-493f74d94dd6ebf5f185ce68d17a0110516c7337.tar.xz
mpd-493f74d94dd6ebf5f185ce68d17a0110516c7337.zip
tag/id3: convert path from "wchar_t*" to "char*" for error message
-rw-r--r--src/tag/TagId3.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tag/TagId3.cxx b/src/tag/TagId3.cxx
index 288f239d1..e46e887bc 100644
--- a/src/tag/TagId3.cxx
+++ b/src/tag/TagId3.cxx
@@ -31,6 +31,7 @@
#include "Riff.hxx"
#include "Aiff.hxx"
#include "fs/Path.hxx"
+#include "fs/NarrowPath.hxx"
#include "fs/FileSystem.hxx"
#include <id3tag.h>
@@ -486,7 +487,8 @@ tag_id3_load(Path path_fs, Error &error)
{
FILE *file = FOpen(path_fs, PATH_LITERAL("rb"));
if (file == nullptr) {
- error.FormatErrno("Failed to open file %s", path_fs.c_str());
+ error.FormatErrno("Failed to open file %s",
+ NarrowPath(path_fs).c_str());
return nullptr;
}