diff --git a/libraries/TGRSIint/FullPath.cxx b/libraries/TGRSIint/FullPath.cxx index eddae14610b..33272da1241 100644 --- a/libraries/TGRSIint/FullPath.cxx +++ b/libraries/TGRSIint/FullPath.cxx @@ -11,7 +11,7 @@ std::string full_path(const std::string& path) std::array buff; char* success = realpath(path.c_str(), buff.data()); if(success != nullptr) { - return std::string(buff.data()); // this ensures that we stop at the string limiting \0 (whereas buff.begin() to buff.end() would use all PATH_MAX+1 characters of the array) + return std::string(buff.data()); // this ensures that we stop at the string limiting \0 (whereas buff.begin() to buff.end() would use all PATH_MAX+1 characters of the array) } // TODO: Give some sort of error message. return "";