diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 09:59:37 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-06-18 09:59:37 +0000 |
commit | 87f20be93d891a7e6c83dada1496ecb76261210f (patch) | |
tree | 25ee6d12a57ddfff898b347bb4d1534e57ea633d /sbin | |
parent | a8b64ad3cec5c892c58b768142240ff55a710231 (diff) |
fix non-numeric minor number checking; bde
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/mknod/mknod.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index b6927e41162..68c9f49ce6a 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mknod.c,v 1.3 1996/08/02 11:16:47 deraadt Exp $ */ +/* $OpenBSD: mknod.c,v 1.4 1997/06/18 09:59:36 deraadt Exp $ */ /* $NetBSD: mknod.c,v 1.8 1995/08/11 00:08:18 jtc Exp $ */ /* @@ -47,7 +47,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mknod.c 8.1 (Berkeley) 6/5/93"; #else -static char rcsid[] = "$OpenBSD: mknod.c,v 1.3 1996/08/02 11:16:47 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mknod.c,v 1.4 1997/06/18 09:59:36 deraadt Exp $"; #endif #endif /* not lint */ @@ -91,7 +91,7 @@ main(argc, argv) /* NOTREACHED */ } minor = (long)strtoul(argv[4], &endp, 0); - if (endp == argv[3] || *endp != '\0') { + if (endp == argv[4] || *endp != '\0') { errx(1, "non-numeric minor number."); /* NOTREACHED */ } |