From: Manuel Novoa III Date: Thu, 3 Apr 2003 19:29:11 +0000 (-0000) Subject: Fix 'thinko'. X-Git-Tag: 1_00_pre1~131 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0c236a09edf4491f1edb08b97503fce7b922fef5;p=oweals%2Fbusybox.git Fix 'thinko'. --- diff --git a/coreutils/mknod.c b/coreutils/mknod.c index 59294e9cb..d5e9e17fe 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); }