diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2025-04-18 14:09:35 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2025-04-18 14:09:35 -0400 |
commit | 96f98cea12d6ae80ecb45dba2fb14555c74612fc (patch) | |
tree | 0bdfb49f9ac1bf52833ae1e451e7b54badfb402f /tests/xtouch.c | |
parent | f9fd4b9be60848bfd69682af45c51739bf7aa3bf (diff) | |
download | bfs-96f98cea12d6ae80ecb45dba2fb14555c74612fc.tar.xz |
Diffstat (limited to 'tests/xtouch.c')
-rw-r--r-- | tests/xtouch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/xtouch.c b/tests/xtouch.c index 5d65a4c..f33c573 100644 --- a/tests/xtouch.c +++ b/tests/xtouch.c @@ -217,8 +217,8 @@ int main(int argc, char *argv[]) { } if (marg) { - long mode; - if (xstrtol(marg, NULL, 8, &mode) == 0 && mode >= 0 && mode < 01000) { + unsigned int mode; + if (xstrtoui(marg, NULL, 8, &mode) == 0 && mode < 01000) { args.fmode = args.dmode = mode; } else { fprintf(stderr, "%s: Invalid mode '%s'\n", cmd, marg); |