diff --git a/src/OpenColorIO/FileRules.cpp b/src/OpenColorIO/FileRules.cpp index e0df0d0276..19cbd47bf7 100644 --- a/src/OpenColorIO/FileRules.cpp +++ b/src/OpenColorIO/FileRules.cpp @@ -117,7 +117,7 @@ std::string ConvertToRegularExpression(const char * globPattern, bool ignoreCase if (globString[idx] == ']') { - ThrowInvalidRegex(globPattern, globPattern + idx); + ThrowInvalidRegex(globPattern, &globString[idx]); } // Full processing from '[' to ']'.