diff options
Diffstat (limited to 'group.c')
-rw-r--r-- | group.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/group.c b/group.c index f7a0a2d..a25972a 100644 --- a/group.c +++ b/group.c @@ -430,8 +430,8 @@ group_update_names(struct screen_ctx *sc) } } - strings = xmalloc((nstrings < CALMWM_NGROUPS ? CALMWM_NGROUPS : - nstrings) * sizeof(*strings)); + strings = xcalloc((nstrings < CALMWM_NGROUPS ? CALMWM_NGROUPS : + nstrings), sizeof(*strings)); p = (char *)prop_ret; while (n < nstrings) { |