summaryrefslogtreecommitdiff
path: root/usr.bin/tn3270
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-07-09 07:05:10 +0000
commite794dc8249450a31cf35cb2aa88a33779325b689 (patch)
tree7fe943aa48c43bd24ed6b9267ab44c0191c44d4a /usr.bin/tn3270
parent5b1ba3114a10793470c731e714160f24131b690d (diff)
correct type on last arg to execl(); nordin@cse.ogi.edu
Diffstat (limited to 'usr.bin/tn3270')
-rw-r--r--usr.bin/tn3270/sys_curses/system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/tn3270/sys_curses/system.c b/usr.bin/tn3270/sys_curses/system.c
index 800913deaba..c22bf7de8f6 100644
--- a/usr.bin/tn3270/sys_curses/system.c
+++ b/usr.bin/tn3270/sys_curses/system.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $ */
+/* $OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $ */
/*-
* Copyright (c) 1988 The Regents of the University of California.
@@ -35,7 +35,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)system.c 4.5 (Berkeley) 4/26/91";*/
-static char rcsid[] = "$OpenBSD: system.c,v 1.8 2000/02/01 03:23:44 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: system.c,v 1.9 2001/07/09 07:04:55 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -738,7 +738,7 @@ char *argv[];
extern char *getenv();
cmdname = getenv("SHELL");
- execlp(cmdname, cmdname, 0);
+ execlp(cmdname, cmdname, (char *)NULL);
perror("Exec'ing new shell...\n");
_exit(1);
} else {