Fix 'thinko'.

This commit is contained in:
Manuel Novoa III 2003-04-03 19:29:11 +00:00
parent 8320b425a3
commit 0c236a09ed

View File

@ -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);
}