1
0
Fork 0

Ignore files that have -set.xml in them, but don't end in that exact string

(i.e. something-set.xml~)
This commit is contained in:
curt 2002-08-28 17:53:52 +00:00
parent 61655bb2b2
commit 17efea3ec0

View file

@ -1273,7 +1273,7 @@ void fgShowAircraft(void) {
while ((dire = ulReadDir(dirp)) != NULL) {
char *ptr;
if ((ptr = strstr(dire->d_name, "-set.xml")) ) {
if ((ptr = strstr(dire->d_name, "-set.xml")) && ptr[8] == '\0' ) {
SGPath afile = path;
afile.append(dire->d_name);