diff options
author | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-06-18 23:37:37 +0000 |
---|---|---|
committer | Peter Valchev <pvalchev@cvs.openbsd.org> | 2003-06-18 23:37:37 +0000 |
commit | 9e2c3e114dc8c3077bab78a16670ee975ba6d265 (patch) | |
tree | 3f268933c05d376b565ebf8548d1efbfb7a0f57a /games | |
parent | eda2e96166dbae18a094680b778c478947e1a61f (diff) |
return pointer from off_name() function as it's meant to be - this
was missed when copy() was changed; ok millert
Diffstat (limited to 'games')
-rw-r--r-- | games/fortune/fortune/fortune.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/games/fortune/fortune/fortune.c b/games/fortune/fortune/fortune.c index 0761169cf45..24b331d43c9 100644 --- a/games/fortune/fortune/fortune.c +++ b/games/fortune/fortune/fortune.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fortune.c,v 1.18 2003/06/03 03:01:39 millert Exp $ */ +/* $OpenBSD: fortune.c,v 1.19 2003/06/18 23:37:36 pvalchev Exp $ */ /* $NetBSD: fortune.c,v 1.8 1995/03/23 08:28:40 cgd Exp $ */ /*- @@ -43,7 +43,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93"; #else -static char rcsid[] = "$OpenBSD: fortune.c,v 1.18 2003/06/03 03:01:39 millert Exp $"; +static char rcsid[] = "$OpenBSD: fortune.c,v 1.19 2003/06/18 23:37:36 pvalchev Exp $"; #endif #endif /* not lint */ @@ -604,9 +604,7 @@ char * off_name(file) char *file; { - char *new; - - new = copy(file, "-o"); + return (copy(file, "-o")); } /* |