aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tools/mmaps_generator/PathCommon.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/tools/mmaps_generator/PathCommon.h b/src/tools/mmaps_generator/PathCommon.h
index 31ac3711b4b..4b46e720b4a 100644
--- a/src/tools/mmaps_generator/PathCommon.h
+++ b/src/tools/mmaps_generator/PathCommon.h
@@ -25,6 +25,7 @@
#ifndef _WIN32
#include <cstddef>
+ #include <cstring>
#include <dirent.h>
#else
#include <Windows.h>
@@ -106,7 +107,7 @@ namespace MMAP
errno = 0;
if ((dp = readdir(dirp)) != NULL)
{
- if (matchWildcardFilter(filter.c_str(), dp->d_name))
+ if (strcmp(dp->d_name, ".") != 0 && strcmp(dp->d_name, "..") != 0 && matchWildcardFilter(filter.c_str(), dp->d_name))
fileList.push_back(std::string(dp->d_name));
}
else