diff options
Diffstat (limited to 'src/sticker/Database.cxx')
-rw-r--r-- | src/sticker/Database.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/sticker/Database.cxx b/src/sticker/Database.cxx index 860b40dd3..a39cfc93a 100644 --- a/src/sticker/Database.cxx +++ b/src/sticker/Database.cxx @@ -21,6 +21,7 @@ #include "Sticker.hxx" #include "lib/sqlite/Util.hxx" #include "fs/Path.hxx" +#include "fs/NarrowPath.hxx" #include "Idle.hxx" #include "util/StringCompare.hxx" #include "util/ScopeExit.hxx" @@ -82,7 +83,7 @@ static const char sticker_sql_create[] = ""; StickerDatabase::StickerDatabase(Path path) - :db(path.c_str()) + :db(NarrowPath(path)) { assert(!path.IsNull()); |