Hi,
I'm using fltk 1.1.9 in Windows. I found, that function
Fl_Preferences::getUserdataPath generates wrong directories, when
filename contains a dot. I think the error is in RootNode::getPath,
where function search for '.' instead of '/'.
// get the path to the preferences directory
char Fl_Preferences::RootNode::getPath( char *path, int pathlen )
{
strlcpy( path, filename_, pathlen);
char *s;
for ( s = path; *s; s++ ) if ( *s == '\\' ) *s = '/';
s = strrchr( path, '.' ); // <== should be strchr(path, '/')
if ( !s ) return 0;
*s = 0;
char ret = makePath( path );
strcpy( s, "/" );
return ret;
}
--
Pozdrawiam
Andrzej Popowski
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs