mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-21 05:18:06 +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:
@@ -360,8 +360,9 @@ appiconBalloon(WObjDescriptor *object)
|
||||
char *tmp;
|
||||
|
||||
if (aicon->command && aicon->wm_class) {
|
||||
tmp = wmalloc(strlen(aicon->command)+strlen(aicon->wm_class)+8);
|
||||
sprintf(tmp, "%s (%s)", aicon->wm_class, aicon->command);
|
||||
int len = strlen(aicon->command)+strlen(aicon->wm_class)+8;
|
||||
tmp = wmalloc(len);
|
||||
snprintf(tmp, len, "%s (%s)", aicon->wm_class, aicon->command);
|
||||
scr->balloon->text = tmp;
|
||||
} else if (aicon->command) {
|
||||
scr->balloon->text = wstrdup(aicon->command);
|
||||
|
||||
Reference in New Issue
Block a user