summaryrefslogtreecommitdiff
path: root/plugingui/directory.cc
diff options
context:
space:
mode:
authorJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:37:34 +0200
committerJonas Suhr Christensen <jsc@umbraculum.org>2013-05-15 19:37:34 +0200
commit20c37dd67deaa52f32ab7cde142c0dc91db57650 (patch)
tree24c91ce6340ceded78686c0bf599e53b0d1b1857 /plugingui/directory.cc
parentbc639d80f086a50ae71bbd9e7f188de456447109 (diff)
Skipping filtering of file with length less than drumkit suffix length.
Diffstat (limited to 'plugingui/directory.cc')
-rw-r--r--plugingui/directory.cc1
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;