From bd10b531314ec546d25fd238f27d94c74a726567 Mon Sep 17 00:00:00 2001 From: christos Date: Mon, 13 Oct 1997 21:02:57 +0000 Subject: - make sure that the arguments to the printf like functions are correct - add a makemsg() function to accompany makesignal. --- sail/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sail/main.c') 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; -- cgit v1.2.3