diff options
| author | B. Watson <urchlay@slackware.uk> | 2024-06-03 18:47:39 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2024-06-03 18:47:39 -0400 |
| commit | 1af6d65e6985038f1c8501686cdce22a4cbc6250 (patch) | |
| tree | 273534349783374b25e5a43633d9bb56a2c25dd9 /protbas.c | |
| parent | f5f7603a55d4fbe9cda585f3464ace490627a6ed (diff) | |
| download | bw-atari8-tools-1af6d65e6985038f1c8501686cdce22a4cbc6250.tar.gz | |
add doc for protbas, remove protection options from unprotbas doc.
Diffstat (limited to 'protbas.c')
| -rw-r--r-- | protbas.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |
