diff options
Diffstat (limited to 'plugingui/directory.cc')
-rw-r--r-- | plugingui/directory.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugingui/directory.cc b/plugingui/directory.cc index 9053f8d..dfd6fcb 100644 --- a/plugingui/directory.cc +++ b/plugingui/directory.cc @@ -153,6 +153,7 @@ Directory::EntryList Directory::listFiles(std::string path) } else { int drumkit_suffix_length = strlen(DRUMKIT_SUFFIX); + if((int)name.size() < drumkit_suffix_length) continue; if(name.substr(name.length() - drumkit_suffix_length, drumkit_suffix_length) != DRUMKIT_SUFFIX) { continue; |