mirror of
https://github.com/jarun/nnn.git
synced 2024-11-18 08:59:14 +00:00
sizeof(char) is always 1, no need to be explicit
This commit is contained in:
parent
a715201255
commit
e27af6f1db
4
noice.c
4
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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue