Fix rgbasm -b and rgbasm -g (#1052)

Fixes #1051
This commit is contained in:
Rangi
2022-09-25 04:22:55 -04:00
committed by GitHub
parent 5ad8a8c958
commit f88968ec20
7 changed files with 12 additions and 4 deletions

View File

@@ -182,7 +182,7 @@ int main(int argc, char *argv[])
switch (ch) {
case 'b':
if (strlen(musl_optarg) == 2)
opt_B(&musl_optarg[1]);
opt_B(musl_optarg);
else
errx("Must specify exactly 2 characters for option 'b'");
break;
@@ -204,7 +204,7 @@ int main(int argc, char *argv[])
case 'g':
if (strlen(musl_optarg) == 4)
opt_G(&musl_optarg[1]);
opt_G(musl_optarg);
else
errx("Must specify exactly 4 characters for option 'g'");
break;