diff --git a/cmd/strut/ewmh.c b/cmd/strut/ewmh.c index f1b32761..3edce679 100644 --- a/cmd/strut/ewmh.c +++ b/cmd/strut/ewmh.c @@ -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);