From eb0fa6e5df3b3898ff73160cdbe6dc5cab88e55b Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 28 Aug 2011 07:53:25 +1000 Subject: [PATCH] Copy cgminer path, not cat it. --- main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.c b/main.c index f369be4e..73dd899a 100644 --- a/main.c +++ b/main.c @@ -4495,7 +4495,7 @@ int main (int argc, char *argv[]) sigaction(SIGINT, &handler, &inthandler); opt_kernel_path = malloc(PATH_MAX); - strcat(opt_kernel_path, CGMINER_PREFIX); + strcpy(opt_kernel_path, CGMINER_PREFIX); // Hack to make cgminer silent when called recursively on WIN32 int skip_to_bench = 0;