1
0
mirror of https://github.com/openbsd/src.git synced 2025-01-10 06:47:55 -08:00

Drop "rpath" from pledge(2) after ncurses initialization.

Discussed with and OK tb@
OK cheloha@ on previous version
This commit is contained in:
mestre 2018-08-06 06:27:32 +00:00
parent 1b907d5693
commit 20ac8c99cc

View File

@ -1,4 +1,4 @@
/* $OpenBSD: worms.c,v 1.28 2016/03/05 07:47:15 tb Exp $ */
/* $OpenBSD: worms.c,v 1.29 2018/08/06 06:27:32 mestre Exp $ */
/*
* Copyright (c) 1980, 1993
@ -233,6 +233,10 @@ main(int argc, char *argv[])
if (!(worm = calloc(number, sizeof(struct worm))))
nomem();
initscr();
if (pledge("stdio tty", NULL) == -1)
err(1, "pledge");
curs_set(0);
CO = COLS;
LI = LINES;