Fixed: SEGV when starting FCGI restconf program
- Reverted removal of CLICON_RESTCONF_PATH since it was used there Misc fixes: initialized variables, docs, removed obsolete --enable-optyang
This commit is contained in:
parent
3117332ddd
commit
1808015cf6
8 changed files with 36 additions and 12 deletions
|
|
@ -116,6 +116,7 @@ regex_posix(char *regexp,
|
|||
fprintf(stderr, "pattern too long\n");
|
||||
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);
|
||||
strncat(pattern, ")$", sizeof(pattern)-len0-1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue