shithub: orca

Download patch

ref: 12b6d1368404f9297bd4637372220b0cd82a2ea0
parent: e53c7a15c38644dd5b3150facbfefaef1de47e27
author: cancel <cancel@cancel.fm>
date: Fri Sep 13 05:35:55 EDT 2019

Fix incorrect argument check.

Could result in underflow if a negative value is specified.

--- a/tui_main.c
+++ b/tui_main.c
@@ -1931,7 +1931,7 @@
     } 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",