Browse Source

Fix incorrect argument check.

Could result in underflow if a negative value is specified.
master
cancel 6 years ago
parent
commit
12b6d13684
  1. 2
      tui_main.c

2
tui_main.c

@ -1931,7 +1931,7 @@ int main(int argc, char** argv) {
} break;
case Argopt_seed: {
init_seed = atol(optarg);
if (init_bpm < 1) {
if (init_seed < 1) {
fprintf(stderr,
"Bad seed argument %s.\n"
"Must be positive integer.\n",

Loading…
Cancel
Save