From d819236121d163b1936bfd6d7beba3356b209b8c Mon Sep 17 00:00:00 2001 From: Edward Tomasz Napierala Date: Tue, 9 Feb 2016 09:32:10 +0000 Subject: [PATCH] Use proper functions for parsing the numeric values. Submitted by: bde@ MFC after: 1 month Sponsored by: The FreeBSD Foundation --- bin/dd/args.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/dd/args.c b/bin/dd/args.c index 1cbf3b374cf1..6cbc65adde64 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);