fix memset of struts in ewmh_getstrut

This commit is contained in:
David du Colombier 2023-06-25 20:40:52 +02:00
parent ff120c7fee
commit 455972bcd4
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ ewmh_getstrut(Window *w, Rectangle struts[4]) {
long *strut;
ulong n;
memset(struts, 0, sizeof *struts);
memset(struts, 0, sizeof(Rectangle[4]));
n = getprop_long(w, Net("WM_STRUT_PARTIAL"), "CARDINAL",
0L, &strut, Last);