diff options
author | Manuel Novoa III | 2003-04-03 19:29:11 +0000 |
---|---|---|
committer | Manuel Novoa III | 2003-04-03 19:29:11 +0000 |
commit | 0c236a09edf4491f1edb08b97503fce7b922fef5 (patch) | |
tree | f86664a2be3b3239b254a2b1d5318b4de5f2b96e | |
parent | 8320b425a3016e0610dee2970b24a0ebcad0d943 (diff) | |
download | busybox-0c236a09edf4491f1edb08b97503fce7b922fef5.zip busybox-0c236a09edf4491f1edb08b97503fce7b922fef5.tar.gz |
Fix 'thinko'.
-rw-r--r-- | coreutils/mknod.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 59294e9..d5e9e17 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c @@ -46,7 +46,7 @@ extern int mknod_main(int argc, char **argv) mode |= modes_cubp[(int)(name[4])]; dev = 0; - if ((*name != 'p') && ((argc -= 2) == 0)) { + if ((*name != 'p') && ((argc -= 2) == 2)) { dev = (bb_xgetularg10_bnd(argv[2], 0, 255) << 8) + bb_xgetularg10_bnd(argv[3], 0, 255); } |