diff options
Diffstat (limited to 'ftparchive/byhash.cc')
| -rw-r--r-- | ftparchive/byhash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ftparchive/byhash.cc b/ftparchive/byhash.cc index b24f6158e..8013bd7a6 100644 --- a/ftparchive/byhash.cc +++ b/ftparchive/byhash.cc @@ -50,7 +50,7 @@ void DeleteAllButMostRecent(std::string dir, int KeepFiles) std::string GenByHashFilename(std::string ByHashOutputFile, HashString const &h) { std::string const ByHash = "/by-hash/" + h.HashType() + "/" + h.HashValue(); - size_t trailing_slash = ByHashOutputFile.find_last_of("/"); + size_t trailing_slash = ByHashOutputFile.find_last_of('/'); if (trailing_slash == std::string::npos) trailing_slash = 0; ByHashOutputFile = ByHashOutputFile.replace( |
