This commit is contained in:
cathugger 2018-06-16 13:22:52 +00:00
parent cf4443b7fd
commit 6458157cda
3 changed files with 5 additions and 5 deletions

View file

@ -409,7 +409,7 @@ static void filters_add(const char *filter)
memset(&f,0,sizeof(f));
f.re = re;
size_t fl = strlen(filter) + 1;
f.str = malloc(fl);
f.str = (char *) malloc(fl);
if (!f.str)
abort();
memcpy(f.str,filter,fl);