diff options
author | 2016-04-10 17:21:32 +1000 | |
---|---|---|
committer | 2016-04-10 17:21:46 +1000 | |
commit | 7d1ec41744172cb9b36212d78afb8713ff7ced57 (patch) | |
tree | 535c63d3f05da5b4aa6b8f27948210ebac08c476 /src/lib/util/unzip.cpp | |
parent | cceb3a32b786790495e846dd8c4d1684cce3a5dc (diff) |
foobar is not a subdirectory of foo called bar
Diffstat (limited to 'src/lib/util/unzip.cpp')
-rw-r--r-- | src/lib/util/unzip.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/util/unzip.cpp b/src/lib/util/unzip.cpp index b0b64a5df3b..bf7891f0258 100644 --- a/src/lib/util/unzip.cpp +++ b/src/lib/util/unzip.cpp @@ -639,7 +639,7 @@ int zip_file_impl::search(std::uint32_t search_crc, const std::string &search_fi // FIXME: if (!is_utf8) convert filename to UTF8 (assume CP437 or something) // chop off trailing slash for directory entries - bool const is_dir(!m_header.file_name.empty() && (*m_header.file_name.rbegin() == '/')); + bool const is_dir(!m_header.file_name.empty() && (m_header.file_name.back() == '/')); if (is_dir) m_header.file_name.resize(m_header.file_name.length() - 1); // check to see if it matches query |