mirror of https://github.com/fltk/fltk
Reverting previous fix.
It introduced a new issue. Sorry!
This commit is contained in:
parent
9c89a7f320
commit
79be9fb792
|
@ -72,7 +72,7 @@ int Fl_System_Driver::filename_absolute(char *to, int tolen, const char *from) {
|
||||||
if (isdirsep(*(a-1))) a--;
|
if (isdirsep(*(a-1))) a--;
|
||||||
/* remove intermediate . and .. names: */
|
/* remove intermediate . and .. names: */
|
||||||
while (*start == '.') {
|
while (*start == '.') {
|
||||||
if (start[1]=='.' && (isdirsep(start[2]) || start[2]==0) ) {
|
if (start[1]=='.' && isdirsep(start[2])) {
|
||||||
char *b;
|
char *b;
|
||||||
for (b = a-1; b >= temp && !isdirsep(*b); b--) {/*empty*/}
|
for (b = a-1; b >= temp && !isdirsep(*b); b--) {/*empty*/}
|
||||||
if (b < temp) break;
|
if (b < temp) break;
|
||||||
|
|
Loading…
Reference in New Issue