Reverting previous fix.

It introduced a new issue. Sorry!
This commit is contained in:
Matthias Melcher 2022-06-11 12:36:59 +02:00
parent 9c89a7f320
commit 79be9fb792

View File

@ -72,7 +72,7 @@ int Fl_System_Driver::filename_absolute(char *to, int tolen, const char *from) {
if (isdirsep(*(a-1))) a--;
/* remove intermediate . and .. names: */
while (*start == '.') {
if (start[1]=='.' && (isdirsep(start[2]) || start[2]==0) ) {
if (start[1]=='.' && isdirsep(start[2])) {
char *b;
for (b = a-1; b >= temp && !isdirsep(*b); b--) {/*empty*/}
if (b < temp) break;