summary refs log tree commit diff
path: root/.bin/xx.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2016-09-15 22:48:33 -0400
committerJune McEnroe <june@causal.agency>2016-09-15 22:48:33 -0400
commit98ce3ef6d29a4d9a7338f9733dd21b8c61024b22 (patch)
tree98dd81d648b1a0a329c8c7157b871ef443946af2 /.bin/xx.c
parentWrite xx usage to stderr (diff)
downloadsrc-98ce3ef6d29a4d9a7338f9733dd21b8c61024b22.tar.gz
src-98ce3ef6d29a4d9a7338f9733dd21b8c61024b22.zip
Use strtoul in xx
Oops.
Diffstat (limited to '')
-rwxr-xr-x.bin/xx.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/.bin/xx.c b/.bin/xx.c
index 734f9d3c..5ee22f6f 100755
--- a/.bin/xx.c
+++ b/.bin/xx.c
@@ -32,11 +32,11 @@ int main(int argc, char **argv) {
         if (opt == 'a')
             flags ^= FLAG_ASCII;
         else if (opt == 'c')
-            cols = (size_t) strtol(optarg, NULL, 10);
+            cols = strtoul(optarg, NULL, 10);
         else if (opt == 'f')
             flags ^= FLAG_OFFSET;
         else if (opt == 'g')
-            group = (size_t) strtol(optarg, NULL, 10);
+            group = strtoul(optarg, NULL, 10);
         else if (opt == 'k')
             flags ^= FLAG_SKIP;
         else {