Carrying fix from 1.3-current (r11177) to the new porting branch.

git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3-porting@11361 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
Greg Ercolano
2016-03-14 17:09:46 +00:00
parent 5c3c42f464
commit aeaf3b1586
+1 -1
View File
@@ -1228,7 +1228,7 @@ int Fl_Tree::item_pathname(char *pathname, int pathnamelen, const Fl_Tree_Item *
SAFE_RCAT('/'); // rcat leading slash
item = item->parent(); // move up tree (NULL==root)
}
if ( *(++s) == '/' ) ++s; // leave off leading slash from pathname
if ( *(++s) == '/' ) { ++s; --slen; } // leave off leading slash from pathname
if ( s != pathname ) memmove(pathname, s, slen); // Shift down right-aligned string
return(0);
}