diff options
Diffstat (limited to 'toys')
-rw-r--r-- | toys/posix/cut.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toys/posix/cut.c b/toys/posix/cut.c index abf944de..5ca466dc 100644 --- a/toys/posix/cut.c +++ b/toys/posix/cut.c @@ -82,14 +82,14 @@ static void parse_list(char *list) //Get start position. if (*(dtoken = strsep(&ctoken, "-"))) { - start = get_int_value(dtoken, 0, INT_MAX); + start = atolx_range(dtoken, 0, INT_MAX); start = (start?(start-1):start); } //Get end position. if (!ctoken) end = -1; //case e.g. 1,2,3 else if (*ctoken) {//case e.g. N-M - end = get_int_value(ctoken, 0, INT_MAX); + end = atolx_range(ctoken, 0, INT_MAX); if (!end) end = INT_MAX; end--; if(end == start) end = -1; |