* Rename demon -> daemon
This commit is contained in:
parent
dd2ac56af8
commit
ff37ce808c
7 changed files with 11 additions and 13 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue