From 12b6d1368404f9297bd4637372220b0cd82a2ea0 Mon Sep 17 00:00:00 2001 From: cancel Date: Fri, 13 Sep 2019 09:35:55 +0900 Subject: [PATCH] Fix incorrect argument check. Could result in underflow if a negative value is specified. --- tui_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tui_main.c b/tui_main.c index d17211c..cfd3d31 100644 --- a/tui_main.c +++ b/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",