diff options
author | pfaedit <pfaedit> | 2010-02-28 03:04:18 +0000 |
---|---|---|
committer | pfaedit <pfaedit> | 2010-02-28 03:04:18 +0000 |
commit | ef38d4660f650aa452ec5c9795eda691ff5e0138 (patch) | |
tree | c13e29f51aa8e6542338ae9a3d7c94a1e836e0b0 /gutils | |
parent | b3308d4543eac6f719db6b10523d7cd0f5626452 (diff) |
Sigh. And one other place.
Diffstat (limited to 'gutils')
-rw-r--r-- | gutils/fsys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gutils/fsys.c b/gutils/fsys.c index 708550b0..c8f880bb 100644 --- a/gutils/fsys.c +++ b/gutils/fsys.c @@ -395,8 +395,8 @@ unichar_t *u_GFileGetAbsoluteName(unichar_t *name, unichar_t *result, int rsiz) for ( pt = spt; *pt!='\0' && *pt!='/'; ++pt ); if ( pt==spt ) /* Found // in a path spec, reduce to / (we've*/ u_strcpy(spt,pt); /* skipped past the :// of the machine name) */ - else if ( pt==spt+1 && spt[0]=='.' ) /* Noop */ - u_strcpy(spt,pt); + else if ( pt==spt+1 && spt[0]=='.' && *pt=='/' ) { /* Noop */ + u_strcpy(spt,spt+2); else if ( pt==spt+2 && spt[0]=='.' && spt[1]=='.' ) { for ( bpt=spt-2 ; bpt>rpt && *bpt!='/'; --bpt ); if ( bpt>=rpt && *bpt=='/' ) { |