diff options
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; |