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:
Olof hagsand 2021-12-30 15:57:43 +01:00
parent 3117332ddd
commit 1808015cf6
8 changed files with 36 additions and 12 deletions

View file

@ -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);