Skip to content

Commit 8c5528f

Browse files
committed
Fix makeFileGeneratorRelative for "./"
Fixes #60
1 parent fc97c1a commit 8c5528f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/configGenerator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ void ConfigGenerator::makeFileGeneratorRelative(const string& fileName, string&
10491049
}
10501050
makePathsRelative(path, "./", retFileName);
10511051
// Check if relative to current dir
1052-
if (retFileName.find("./") == 0) {
1052+
if (retFileName.length() > 2 && retFileName.find("./") == 0) {
10531053
retFileName = retFileName.substr(2);
10541054
}
10551055
retFileName += file;

0 commit comments

Comments
 (0)