aboutsummaryrefslogtreecommitdiff
path: root/protbas.c
diff options
context:
space:
mode:
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;