From e27af6f1dbc804e90a3b98f19afdf1055bab8dc9 Mon Sep 17 00:00:00 2001 From: sin Date: Wed, 6 Jan 2016 15:24:35 +0000 Subject: [PATCH] sizeof(char) is always 1, no need to be explicit --- noice.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/noice.c b/noice.c index 41172409..ada28fcb 100644 --- a/noice.c +++ b/noice.c @@ -235,8 +235,8 @@ setfilter(regex_t *regex, char *filter) r = regcomp(regex, filter, REG_NOSUB | REG_EXTENDED | REG_ICASE); if (r != 0) { - errbuf = xmalloc(COLS * sizeof(char)); - regerror(r, regex, errbuf, COLS * sizeof(char)); + errbuf = xmalloc(COLS); + regerror(r, regex, errbuf, COLS); printmsg(errbuf); free(errbuf); }