From b6aefc6ebe82bf35599548de9cc8b1c742ce3d62 Mon Sep 17 00:00:00 2001 From: troky Date: Fri, 4 Jul 2014 09:54:29 +0200 Subject: [PATCH] Fixed segfault when adding pool profile via ncurses GUI #322 --- sgminer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sgminer.c b/sgminer.c index dd02e0eb..e5850d04 100644 --- a/sgminer.c +++ b/sgminer.c @@ -7660,7 +7660,7 @@ static bool input_pool(bool live) if (strcmp(name, "-1") == 0) strcpy(name, ""); desc = curses_input("Description (optional)"); if (strcmp(desc, "-1") == 0) strcpy(desc, ""); - algo = curses_input("Profile (optional)"); + profile = curses_input("Profile (optional)"); if (strcmp(profile, "-1") == 0) profile[0] = '\0'; algo = curses_input("Algorithm (optional)"); if (strcmp(algo, "-1") == 0) algo[0] = '\0';