diff --git a/src/strcmp.c b/src/strcmp.c index 07919d5..ea20b1e 100644 --- a/src/strcmp.c +++ b/src/strcmp.c @@ -30,7 +30,7 @@ int main(int argc, char *argv[]) { int i; #ifdef __OpenBSD__ - if (pledge("stdio", NULL) != -1) { + if (pledge("stdio", NULL) == -1) { perror(program_name); return EX_OSERR; }