summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2016-02-09 09:32:10 +0000
committertrasz <trasz@FreeBSD.org>2016-02-09 09:32:10 +0000
commit3cff9b6c1ca3b2dd9e418fae513bfc35b726d0f4 (patch)
tree4827d9b7ee81ad147e3e677724a74e38dd5c6e31 /bin
parentdb0cfe84022c1064861d082e313951d82bffc4e7 (diff)
downloadFreeBSD-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.c4
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);
OpenPOWER on IntegriCloud