mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 12:28:22 +01:00
- s/sprintf/snprintf
- updated some po's - fixed crash bug when removing WINDOWS_MENU or WORKSPACE_MENU from rootmenu - some other stuff i forgot
This commit is contained in:
@@ -357,8 +357,9 @@ wUserMenuGet(WScreen *scr, WWindow *wwin)
|
||||
char *path = NULL;
|
||||
char *tmp;
|
||||
if ( wwin->wm_instance && wwin->wm_class ) {
|
||||
tmp=wmalloc(strlen(wwin->wm_instance)+strlen(wwin->wm_class)+7);
|
||||
sprintf(tmp,"%s.%s.menu",wwin->wm_instance,wwin->wm_class);
|
||||
int len = strlen(wwin->wm_instance)+strlen(wwin->wm_class)+7;
|
||||
tmp=wmalloc(len);
|
||||
snprintf(tmp,len,"%s.%s.menu",wwin->wm_instance,wwin->wm_class);
|
||||
path = wfindfile(DEF_USER_MENU_PATHS,tmp);
|
||||
wfree(tmp);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user