strcmp(1): fixes pledge(2) invocation

This commit is contained in:
Emma Tebibyte 2024-09-11 03:15:58 -06:00
parent a43daf2cf2
commit 8f1e570b50
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -29,7 +29,7 @@ int main(int argc, char *argv[]) {
unsigned int i;
#ifdef __OpenBSD__
if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL) == -1) {
if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL) == -1) {
perror(argv[0] == NULL ? program_name : argv[0]);
return EX_OSERR;