ls: add support for -H
[oweals/busybox.git] / coreutils / cut.c
index 696478bb23ecafbd5185411ff41b7b0cd2a054af..38cd32c773ad7eafcbbbdb2d0464dd8267a1d06d 100644 (file)
@@ -6,7 +6,7 @@
  * Written by Mark Whitley <markw@codepoet.org>
  * debloated by Bernhard Reutner-Fischer
  *
- * Licensed under GPLv2 or later, see file LICENSE in this tarball for details.
+ * Licensed under GPLv2 or later, see file LICENSE in this source tree.
  */
 
 #include "libbb.h"
@@ -224,7 +224,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
                        if (!ntok[0]) {
                                s = BOL;
                        } else {
-                               s = xatoi_u(ntok);
+                               s = xatoi_positive(ntok);
                                /* account for the fact that arrays are zero based, while
                                 * the user expects the first char on the line to be char #1 */
                                if (s != 0)
@@ -237,7 +237,7 @@ int cut_main(int argc UNUSED_PARAM, char **argv)
                        } else if (!ltok[0]) {
                                e = EOL;
                        } else {
-                               e = xatoi_u(ltok);
+                               e = xatoi_positive(ltok);
                                /* if the user specified and end position of 0,
                                 * that means "til the end of the line" */
                                if (e == 0)