mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-06 13:54:12 +01:00
- fixed problem with WINGs based apps exiting with a "X_RotateProperties"
related error when text was selected in a textfiled (this included WPrefs.app and Window Maker itself). - replaced some malloc's with wmalloc's
This commit is contained in:
@@ -319,7 +319,7 @@ updateDockNumbers(WScreen *scr)
|
||||
numbers_gc = XCreateGC(dpy, dicon->icon->core->window,
|
||||
my_v_mask, &my_gc_values);
|
||||
|
||||
ws_numbers = malloc(20);
|
||||
ws_numbers = wmalloc(20);
|
||||
sprintf(ws_numbers, "%i [ %i ]", scr->current_workspace+1,
|
||||
((scr->current_workspace/10)+1));
|
||||
length = strlen(ws_numbers);
|
||||
|
||||
@@ -1249,7 +1249,7 @@ wClipIconPaint(WAppIcon *aicon)
|
||||
wIconPaint(aicon->icon);
|
||||
|
||||
length = strlen(workspace->name);
|
||||
ws_name = malloc(length + 1);
|
||||
ws_name = wmalloc(length + 1);
|
||||
sprintf(ws_name, "%s", workspace->name);
|
||||
sprintf(ws_number, "%i", scr->current_workspace + 1);
|
||||
nlength = strlen(ws_number);
|
||||
|
||||
Reference in New Issue
Block a user