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:
@@ -2455,7 +2455,7 @@ saveMenuInfo(proplist_t dict, WMenu *menu, proplist_t key)
|
||||
proplist_t value, list;
|
||||
char buffer[256];
|
||||
|
||||
sprintf(buffer, "%i,%i", menu->frame_x, menu->frame_y);
|
||||
snprintf(buffer, sizeof(buffer), "%i,%i", menu->frame_x, menu->frame_y);
|
||||
value = PLMakeString(buffer);
|
||||
list = PLMakeArrayFromElements(value, NULL);
|
||||
if (menu->flags.lowered)
|
||||
@@ -2654,7 +2654,7 @@ restoreMenuRecurs(WScreen *scr, proplist_t menus, WMenu *menu, char *path)
|
||||
if (strlen(path) + strlen(menu->frame->title) > 510)
|
||||
return False;
|
||||
|
||||
sprintf(buffer, "%s\\%s", path, menu->frame->title);
|
||||
snprintf(buffer, sizeof(buffer), "%s\\%s", path, menu->frame->title);
|
||||
key = PLMakeString(buffer);
|
||||
entry = PLGetDictionaryEntry(menus, key);
|
||||
res = False;
|
||||
|
||||
Reference in New Issue
Block a user