From 63734c608c4585dabeccbf78442e8137e5393212 Mon Sep 17 00:00:00 2001 From: Lu Wang Date: Thu, 16 Aug 2012 15:41:32 +0800 Subject: [PATCH] fix filename path issue --- src/pdf2htmlEX.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pdf2htmlEX.cc b/src/pdf2htmlEX.cc index e37f271..95b573e 100644 --- a/src/pdf2htmlEX.cc +++ b/src/pdf2htmlEX.cc @@ -234,7 +234,7 @@ int main(int argc, char **argv) if(param.output_filename == "") { - const auto & s = param.input_filename; + const string s = path(param.input_filename).string(); if(boost::algorithm::ends_with(s, ".pdf")) { param.output_filename = s.substr(0, s.size() - 4) + ".html";