summaryrefslogtreecommitdiffstats
path: root/sail/main.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>1997-10-13 21:02:57 +0000
committerchristos <christos@NetBSD.org>1997-10-13 21:02:57 +0000
commitbd10b531314ec546d25fd238f27d94c74a726567 (patch)
treea6f88adfc60ca14d2851035c0a9fce98fcc96438 /sail/main.c
parent7e5c0c57606f0f1e9335aa74ef5ea8c8048a9b2c (diff)
downloadbsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.gz
bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.tar.zst
bsdgames-darwin-bd10b531314ec546d25fd238f27d94c74a726567.zip
- make sure that the arguments to the printf like functions are correct
- add a makemsg() function to accompany makesignal.
Diffstat (limited to 'sail/main.c')
-rw-r--r--sail/main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sail/main.c b/sail/main.c
index a5e28a18..d4a9c6b1 100644
--- a/sail/main.c
+++ b/sail/main.c
@@ -1,4 +1,4 @@
-/* $NetBSD: main.c,v 1.5 1997/10/13 19:44:30 christos Exp $ */
+/* $NetBSD: main.c,v 1.6 1997/10/13 21:03:55 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1983, 1993\n\
#if 0
static char sccsid[] = "@(#)main.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: main.c,v 1.5 1997/10/13 19:44:30 christos Exp $");
+__RCSID("$NetBSD: main.c,v 1.6 1997/10/13 21:03:55 christos Exp $");
#endif
#endif /* not lint */
@@ -65,7 +65,7 @@ main(argc, argv)
(void) srand(getpid());
issetuid = getuid() != geteuid();
- if ((p = strrchr(*argv, '/')) != '\0')
+ if ((p = strrchr(*argv, '/')) != NULL)
p++;
else
p = *argv;