dwm: use ecalloc, prevent theoretical overflow