* Rename demon -> daemon

This commit is contained in:
Olof hagsand 2022-03-07 11:17:34 +01:00
parent dd2ac56af8
commit ff37ce808c
7 changed files with 11 additions and 13 deletions

View file

@ -117,8 +117,8 @@ regex_posix(char *regexp,
return -1;
}
/* note following two lines trigger [-Wstringop-truncation] warnings, but see no actual error */
strncpy(pattern, "^(", 2);
strncpy(pattern+2, posix, sizeof(pattern)-2);
strncpy(pattern, "^(", 3);
strncpy(pattern+2, posix, sizeof(pattern)-3);
strncat(pattern, ")$", sizeof(pattern)-len0-1);
if (regcomp(&re, pattern, REG_NOSUB|REG_EXTENDED) != 0)
return(0); /* report error */