> It's one point of view, but if someone else need something
> like what I
> described, I thought it a bit better and my modification is
> now like this:
>
> void Fl_Help_View::follow_link( Fl_Help_Link *linkp ) {
> char target[32]; // Current target
>
> const char *vlink_name;
>
> clear_selection();
>
> if( link_ ) {
> vlink_name = (*link_)(this, linkp->name);
> if(!vlink_name) return;
> } else {
> vlink_name = linkp->name;
> }
>
> strlcpy( target, vlink_name, sizeof( target ) );
Ok.....
Though there is one other use of linkp->name in ::follow_link() that
ought to be updated too, in that case.
I need to be convinced this introduce no regressions, is all...
SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14
3EL
A company registered in England & Wales. Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev