diff options
author | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-15 19:37:34 +0200 |
---|---|---|
committer | Jonas Suhr Christensen <jsc@umbraculum.org> | 2013-05-15 19:37:34 +0200 |
commit | 20c37dd67deaa52f32ab7cde142c0dc91db57650 (patch) | |
tree | 24c91ce6340ceded78686c0bf599e53b0d1b1857 | |
parent | bc639d80f086a50ae71bbd9e7f188de456447109 (diff) |
Skipping filtering of file with length less than drumkit suffix length.
-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; |