summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/base64.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/base64.c b/src/base64.c
index 679044e40..15888fa83 100644
--- a/src/base64.c
+++ b/src/base64.c
@@ -29,7 +29,7 @@
#include "fadvise.h"
#include "xstrtol.h"
#include "quote.h"
-#include "quotearg.h"
+#include "xdectoint.h"
#include "xfreopen.h"
#define AUTHORS proper_name ("Simon Josefsson")
@@ -289,9 +289,8 @@ main (int argc, char **argv)
break;
case 'w':
- if (xstrtoumax (optarg, NULL, 0, &wrap_column, NULL) != LONGINT_OK)
- error (EXIT_FAILURE, 0, _("invalid wrap size: %s"),
- quotearg (optarg));
+ wrap_column = xnumtoumax (optarg, 0, 0, UINTMAX_MAX, "",
+ _("invalid wrap size"), 0);
break;
case 'i':