diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-04 19:30:17 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-10-04 19:30:17 +0000 |
commit | 790e95d4b83f1cc63ee21a13793c98a53b6f9a35 (patch) | |
tree | fbd2ecb4e90699356fd11841dc40e683a4ec0308 /sbin/mknod | |
parent | ee3e25b09b27e8775937f070dae39a1246bb225a (diff) |
freeze strtoul() base to 10
Diffstat (limited to 'sbin/mknod')
-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 68c9f49ce6a..4f8549ecf0d 100644 --- a/sbin/mknod/mknod.c +++ b/sbin/mknod/mknod.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mknod.c,v 1.4 1997/06/18 09:59:36 deraadt Exp $ */ +/* $OpenBSD: mknod.c,v 1.5 1997/10/04 19:30:16 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.4 1997/06/18 09:59:36 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mknod.c,v 1.5 1997/10/04 19:30:16 deraadt Exp $"; #endif #endif /* not lint */ @@ -85,12 +85,12 @@ main(argc, argv) /* NOTREACHED */ } - major = (long)strtoul(argv[3], &endp, 0); + major = (long)strtoul(argv[3], &endp, 10); if (endp == argv[3] || *endp != '\0') { errx(1, "non-numeric major number."); /* NOTREACHED */ } - minor = (long)strtoul(argv[4], &endp, 0); + minor = (long)strtoul(argv[4], &endp, 10); if (endp == argv[4] || *endp != '\0') { errx(1, "non-numeric minor number."); /* NOTREACHED */ |