aboutsummaryrefslogtreecommitdiff
path: root/protbas.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2024-06-03 18:47:39 -0400
committerB. Watson <urchlay@slackware.uk>2024-06-03 18:47:39 -0400
commit1af6d65e6985038f1c8501686cdce22a4cbc6250 (patch)
tree273534349783374b25e5a43633d9bb56a2c25dd9 /protbas.c
parentf5f7603a55d4fbe9cda585f3464ace490627a6ed (diff)
downloadbw-atari8-tools-1af6d65e6985038f1c8501686cdce22a4cbc6250.tar.gz
add doc for protbas, remove protection options from unprotbas doc.
Diffstat (limited to 'protbas.c')
-rw-r--r--protbas.c4
1 files changed, 2 insertions, 2 deletions
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;