diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-28 17:03:27 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-02-28 17:03:27 +0000 |
commit | c28e284c43f59c5cf0db1b71e5fc1aaed3df8c0d (patch) | |
tree | 9b8fb59385c4bb90bab7ea2e8fc4b2641117a2c6 /sbin/mknod/mknod.c | |
parent | a09e22e8fbb723c0e0d15d0ddc430b5ca3d310f4 (diff) |
Use a base of 0 when calling stroul() as per the man page; gagnocg@ev1.net
Diffstat (limited to 'sbin/mknod/mknod.c')
-rw-r--r-- | sbin/mknod/mknod.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/mknod/mknod.c b/sbin/mknod/mknod.c index 19e8ed89b7e..88b0428fcd4 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mknod.c,v 1.7 2000/01/03 22:05:54 millert Exp $ */ +/* $OpenBSD: mknod.c,v 1.8 2000/02/28 17:03:26 millert 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.7 2000/01/03 22:05:54 millert Exp $"; +static char rcsid[] = "$OpenBSD: mknod.c,v 1.8 2000/02/28 17:03:26 millert Exp $"; #endif #endif /* not lint */ @@ -153,12 +153,12 @@ domknod(argc, argv, mode) /* NOTREACHED */ } - major = (long)strtoul(argv[2], &endp, 10); + major = (long)strtoul(argv[2], &endp, 0); if (endp == argv[2] || *endp != '\0') { errx(1, "non-numeric major number."); /* NOTREACHED */ } - minor = (long)strtoul(argv[3], &endp, 10); + minor = (long)strtoul(argv[3], &endp, 0); if (endp == argv[3] || *endp != '\0') { errx(1, "non-numeric minor number."); /* NOTREACHED */ |