diff --git a/PowerEditor/src/NppIO.cpp b/PowerEditor/src/NppIO.cpp index 77dc4577..659cda5b 100644 --- a/PowerEditor/src/NppIO.cpp +++ b/PowerEditor/src/NppIO.cpp @@ -722,7 +722,7 @@ generic_string Notepad_plus::exts2Filters(generic_string exts) const int j = 0; bool stop = false; - for (size_t i = 0, len = exts.length(); i < len ; ++i) + for (size_t i = 0, len = exts.length(); i < len && j < MAX_PATH - 1; ++i) { if (extStr[i] == ' ') {