summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/shred.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/shred.c b/src/shred.c
index f4347e002..bd88e3831 100644
--- a/src/shred.c
+++ b/src/shred.c
@@ -1256,8 +1256,8 @@ main (int argc, char **argv)
case 's':
{
- intmax_t tmp;
- if ((xstrtoimax (optarg, NULL, 0, &tmp, "cbBkKMGTPEZY0")
+ uintmax_t tmp;
+ if ((xstrtoumax (optarg, NULL, 0, &tmp, "cbBkKMGTPEZY0")
!= LONGINT_OK)
|| OFF_T_MAX < tmp)
{