mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 21:08:08 +01:00
fixes to comply to ANSI C
This commit is contained in:
@@ -355,7 +355,7 @@ wUserMenuGet(WScreen *scr, WWindow *wwin)
|
||||
char buffer[100];
|
||||
char *path = NULL;
|
||||
char *tmp;
|
||||
if ( wwin->wm_instance && wwin->wm_class ) {
|
||||
if (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);
|
||||
|
||||
Reference in New Issue
Block a user