projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
attempt to regularize atoi mess.
[oweals/busybox.git]
/
coreutils
/
diff.c
diff --git
a/coreutils/diff.c
b/coreutils/diff.c
index b30aad5a749a849f25b9a70cd28450b92ce5fb5b..65757d7d15c08e227ed5d638ab4b34ed322244a1 100644
(file)
--- a/
coreutils/diff.c
+++ b/
coreutils/diff.c
@@
-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;