From 639334be803dae79d69e6d6ca139bb3749c9705d Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 30 Nov 2013 00:57:26 -0600 Subject: Fix cut. Some commands went in before "pending", and thus need cleanup but are enabled in defconfig. The fact cut used a function out of lib/pending.c is a hint it might be in this category... --- toys/posix/cut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toys/posix/cut.c') 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; -- cgit v1.2.3