summaryrefslogtreecommitdiff
path: root/sbin/modunload
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-08-05 11:05:22 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-08-05 11:05:22 +0000
commit7547db07ac4d698919b280962106103fec12e5e8 (patch)
treef2f7a65a4e17220709a15d10159bacbd956251e8 /sbin/modunload
parent285381cc923c43c4b3dc84535689eec78f58ddbd (diff)
sync to FreeBSD.
Diffstat (limited to 'sbin/modunload')
-rw-r--r--sbin/modunload/modunload.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/modunload/modunload.c b/sbin/modunload/modunload.c
index a8790a3072d..4e5f7645ee6 100644
--- a/sbin/modunload/modunload.c
+++ b/sbin/modunload/modunload.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: modunload.c,v 1.3 1996/07/02 06:37:55 deraadt Exp $ */
+/* $OpenBSD: modunload.c,v 1.4 1996/08/05 11:05:21 mickey Exp $ */
/* $NetBSD: modunload.c,v 1.9 1995/05/28 05:23:05 jtc Exp $ */
/*
@@ -73,7 +73,7 @@ main(argc, argv)
{
int c;
int modnum = -1;
- char modname[MAXLKMNAME] = "";
+ char *modname = NULL;
struct lmc_unload ulbuf;
while ((c = getopt(argc, argv, "i:n:")) != EOF) {
@@ -82,7 +82,7 @@ main(argc, argv)
modnum = atoi(optarg);
break; /* number */
case 'n':
- strcpy(modname, optarg);
+ modname = optarg;
break; /* name */
case '?':
usage();
@@ -94,7 +94,7 @@ main(argc, argv)
argc -= optind;
argv += optind;
- if (argc != 0 || (modnum == -1 && *modname == '\0'))
+ if (argc != 0 || (modnum == -1 && modname == NULL))
usage();