npc(1): fixes pledge invocation

This commit is contained in:
Emma Tebibyte 2024-09-11 03:13:38 -06:00
parent 7498b283ce
commit e0b5467fb6
Signed by: emma
GPG Key ID: 06FA419A1698C270

View File

@ -44,7 +44,7 @@ int main(int argc, char *argv[]) {
char showtab = 0; /* prints tab characters in caret notation */ char showtab = 0; /* prints tab characters in caret notation */
#ifdef __OpenBSD__ #ifdef __OpenBSD__
if (pledge("stdio unveil", NULL) == -1 || unveil(NULL, NULL)) { if (pledge("stdio unveil", "") == -1 || unveil(NULL, NULL)) {
perror(argv[0] == NULL ? program_name : argv[0]); perror(argv[0] == NULL ? program_name : argv[0]);
return EX_OSERR; return EX_OSERR;
} }