diff options
author | trasz <trasz@FreeBSD.org> | 2016-02-09 09:32:10 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2016-02-09 09:32:10 +0000 |
commit | 3cff9b6c1ca3b2dd9e418fae513bfc35b726d0f4 (patch) | |
tree | 4827d9b7ee81ad147e3e677724a74e38dd5c6e31 /bin | |
parent | db0cfe84022c1064861d082e313951d82bffc4e7 (diff) | |
download | FreeBSD-src-3cff9b6c1ca3b2dd9e418fae513bfc35b726d0f4.zip FreeBSD-src-3cff9b6c1ca3b2dd9e418fae513bfc35b726d0f4.tar.gz |
Use proper functions for parsing the numeric values.
Submitted by: bde@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'bin')
-rw-r--r-- | bin/dd/args.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/dd/args.c b/bin/dd/args.c index 1cbf3b3..6cbc65a 100644 --- a/bin/dd/args.c +++ b/bin/dd/args.c @@ -419,7 +419,7 @@ get_num(const char *val) char *expr; errno = 0; - num = strtouq(val, &expr, 0); + num = strtoumax(val, &expr, 0); if (errno != 0) /* Overflow or underflow. */ err(1, "%s", oper); @@ -469,7 +469,7 @@ get_off_t(const char *val) char *expr; errno = 0; - num = strtoq(val, &expr, 0); + num = strtoimax(val, &expr, 0); if (errno != 0) /* Overflow or underflow. */ err(1, "%s", oper); |