On 03.09.2008, at 11:30, Andrzej Popowski wrote:

> 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;
> }

Good find! Would you have the time to put this into an STR form? That  
would be helpful so we can manage the bug better and fix it.

http://www.fltk.org/str.php

----
http://robowerk.com/


_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to