Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:edogawa
non-daw
non-daw-strlcat.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File non-daw-strlcat.patch of Package non-daw
diff -up non/FL/Fl_Menu_Settings.C.orig non/FL/Fl_Menu_Settings.C --- non/FL/Fl_Menu_Settings.C.orig 2013-11-02 16:17:14.000000000 +0100 +++ non/FL/Fl_Menu_Settings.C 2014-03-26 17:49:27.307676968 +0100 @@ -166,9 +166,9 @@ Fl_Menu_Settings::find_item_x ( const ch // IT'S A SUBMENU // we do not support searches through FL_SUBMENU_POINTER links if ( menupath[0] ) - strlcat( menupath, "/", sizeof( menupath ) ); + strlcat( menupath, "/", sizeof( menupath ) - strlen( menupath ) - 1 ); - strlcat( menupath, m->label(), sizeof( menupath ) ); + strlcat( menupath, m->label(), sizeof( menupath ) - strlen( menupath ) - 1 ); remove_ampersands( menupath, strlen( menupath ) ); @@ -202,9 +202,9 @@ Fl_Menu_Settings::find_item_x ( const ch strcpy( itempath, menupath ); if ( itempath[0] ) - strlcat( itempath, "/", sizeof( itempath ) ); + strlcat( itempath, "/", sizeof( itempath ) - strlen( itempath ) - 1 ); - strlcat( itempath, m->label(), sizeof( itempath ) ); + strlcat( itempath, m->label(), sizeof( itempath ) - strlen( itempath ) - 1 ); remove_ampersands( itempath, strlen( itempath ) );
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor