main #1

Merged
solene merged 9 commits from prx/iblock:main into main 2022-08-22 14:02:24 +00:00
1 changed files with 1 additions and 2 deletions
Showing only changes of commit 7c1edb0feb - Show all commits

3
main.c
View File

@ -25,10 +25,9 @@ int main(int argc, char *argv[]){
err(1, "pledge");
/* configuration */
if (argc == 2) {
if (argc == 2)
if (strlcpy(table, argv[1], TABLE_LEN) >= sizeof(table))
errx(1, "table name is too long");
}
/* get socket structure */
if(getpeername(STDIN_FILENO, (struct sockaddr *)&sock, &slen))