From: curt Date: Wed, 28 Aug 2002 17:53:52 +0000 (+0000) Subject: Ignore files that have -set.xml in them, but don't end in that exact string X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=17efea3ec0f30f09c5f911ad979a557b22b21267;p=flightgear.git Ignore files that have -set.xml in them, but don't end in that exact string (i.e. something-set.xml~) --- diff --git a/src/Main/options.cxx b/src/Main/options.cxx index 8fc107c37..852426cbe 100644 --- a/src/Main/options.cxx +++ b/src/Main/options.cxx @@ -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);