1
0
Fork 0

warning fix: use correct type for std::string::find reply

This commit is contained in:
Torsten Dreyer 2015-03-13 22:57:03 +01:00
parent 32a8c712b0
commit 817297699f

View file

@ -171,7 +171,7 @@ static std::string fgNormalizePath (const std::string& path)
std::string fgValidatePath (const std::string& path, bool write) std::string fgValidatePath (const std::string& path, bool write)
{ {
const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths); const string_list& allowed_paths(write ? write_allowed_paths : read_allowed_paths);
int star_pos; size_t star_pos;
// Normalize the path (prevents ../../.. trickery) // Normalize the path (prevents ../../.. trickery)
std::string normed_path = fgNormalizePath(path); std::string normed_path = fgNormalizePath(path);