Allocation for xinerama_scr_regs used wrong size

Should be sizeof(region_t). Rebasing is hard :(
This commit is contained in:
Yuxuan Shui 2018-10-03 16:19:04 +01:00
parent ff5a0cc0b7
commit f1872c4033
1 changed files with 1 additions and 1 deletions

View File

@ -4854,7 +4854,7 @@ cxinerama_upd_scrs(session_t *ps) {
xcb_xinerama_screen_info_t *scrs = xcb_xinerama_query_screens_screen_info(ps->xinerama_scrs); xcb_xinerama_screen_info_t *scrs = xcb_xinerama_query_screens_screen_info(ps->xinerama_scrs);
ps->xinerama_nscrs = xcb_xinerama_query_screens_screen_info_length(ps->xinerama_scrs); ps->xinerama_nscrs = xcb_xinerama_query_screens_screen_info_length(ps->xinerama_scrs);
ps->xinerama_scr_regs = allocchk(malloc(sizeof(xcb_xfixes_region_t *) ps->xinerama_scr_regs = allocchk(malloc(sizeof(region_t)
* ps->xinerama_nscrs)); * ps->xinerama_nscrs));
for (int i = 0; i < ps->xinerama_nscrs; ++i) { for (int i = 0; i < ps->xinerama_nscrs; ++i) {
const xcb_xinerama_screen_info_t * const s = &scrs[i]; const xcb_xinerama_screen_info_t * const s = &scrs[i];