attempt to regularize atoi mess.
[oweals/busybox.git] / miscutils / mt.c
index f4a3be739d3a4ca0c27e516a70f812c78ecc2e49..a2bb6be911057be45d71b4a7b7d4dd558f5e7689 100644 (file)
@@ -84,7 +84,7 @@ int mt_main(int argc, char **argv)
 
        op.mt_op = code->value;
        if (argc >= 3)
-               op.mt_count = atoi(argv[2]);
+               op.mt_count = xatoi_u(argv[2]);
        else
                op.mt_count = 1;                /* One, not zero, right? */