mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-28 14:10:34 +00:00
Fix 'thinko'.
This commit is contained in:
parent
8320b425a3
commit
0c236a09ed
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user