aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar sin <sin@2f30.org>2016-01-06 15:24:35 +0000
committerGravatar sin <sin@2f30.org>2016-01-06 15:24:35 +0000
commite27af6f1dbc804e90a3b98f19afdf1055bab8dc9 (patch)
tree0e6979c6df27d9c078bbadf9d70d659f1ebe9423
parenta7152012558006b0f0ffca633c8c90ff4ce9726d (diff)
downloadnnn-e27af6f1dbc804e90a3b98f19afdf1055bab8dc9.tar.gz
sizeof(char) is always 1, no need to be explicit
-rw-r--r--noice.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/noice.c b/noice.c
index 4117240..ada28fc 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);
}