From 1af6d65e6985038f1c8501686cdce22a4cbc6250 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 3 Jun 2024 18:47:39 -0400 Subject: add doc for protbas, remove protection options from unprotbas doc. --- protbas.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'protbas.c') diff --git a/protbas.c b/protbas.c index e57ead3..5b62496 100644 --- a/protbas.c +++ b/protbas.c @@ -136,9 +136,9 @@ void parse_args(int argc, char **argv) { default: { char *e; - varname_char = (int)strtol(&(*argv)[2], &e, 16); + varname_char = (int)strtol(optarg, &e, 16); if(*e != 0 || varname_char > 0xff) - die("Invalid hex value for -x option (range is 0 to ff)."); + fprintf(stderr, "%s: Invalid hex value '%s' for -x option (range is 0 to ff).\n", self, optarg); } } break; -- cgit v1.2.3