From e794dc8249450a31cf35cb2aa88a33779325b689 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 9 Jul 2001 07:05:10 +0000 Subject: correct type on last arg to execl(); nordin@cse.ogi.edu --- usr.bin/mg/fileio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/mg/fileio.c') diff --git a/usr.bin/mg/fileio.c b/usr.bin/mg/fileio.c index 9b92b28887b..567684ca869 100644 --- a/usr.bin/mg/fileio.c +++ b/usr.bin/mg/fileio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fileio.c,v 1.18 2001/07/06 13:32:45 art Exp $ */ +/* $OpenBSD: fileio.c,v 1.19 2001/07/09 07:04:49 deraadt Exp $ */ /* * POSIX fileio.c @@ -401,7 +401,7 @@ copy(frname, toname) if ((pid = vfork())) { if (pid == -1) return -1; - execl("/bin/cp", "cp", frname, toname, NULL); + execl("/bin/cp", "cp", frname, toname, (char *)NULL); _exit(1); /* shouldn't happen */ } waitpid(pid, &status, 0); -- cgit v1.2.3