attempt to regularize atoi mess.
[oweals/busybox.git] / coreutils / diff.c
index b30aad5a749a849f25b9a70cd28450b92ce5fb5b..65757d7d15c08e227ed5d638ab4b34ed322244a1 100644 (file)
@@ -1192,7 +1192,7 @@ int diff_main(int argc, char **argv)
 
        context = 3;            /* This is the default number of lines of context. */
        if (cmd_flags & FLAG_U) {
-               context = bb_xgetlarg(U_opt, 10, 1, INT_MAX);
+               context = xatoul_range(U_opt, 1, INT_MAX);
        }
        argc -= optind;
        argv += optind;