Browse Source

Bugfix: Never use waddstr for logwin, since it would bypass special newline handling

Luke Dashjr 12 years ago
parent
commit
33c8e66c2b
2 changed files with 3 additions and 3 deletions
  1. 1 1
      driver-opencl.c
  2. 2 2
      miner.c

+ 1 - 1
driver-opencl.c

@@ -963,7 +963,7 @@ const char *opencl_tui_handle_choice(struct cgpu_info *cgpu, int input)
 			clear_logwin();
 			clear_logwin();
 			get_statline3(logline, cgpu, true, true);
 			get_statline3(logline, cgpu, true, true);
 			wattron(logwin, A_BOLD);
 			wattron(logwin, A_BOLD);
-			waddstr(logwin, logline);
+			wlogprint("%s", logline);
 			wattroff(logwin, A_BOLD);
 			wattroff(logwin, A_BOLD);
 			wlogprint("\n");
 			wlogprint("\n");
 			
 			

+ 2 - 2
miner.c

@@ -6017,7 +6017,7 @@ refresh:
 	
 	
 	get_statline3(logline, cgpu, true, true);
 	get_statline3(logline, cgpu, true, true);
 	wattron(logwin, A_BOLD);
 	wattron(logwin, A_BOLD);
-	waddstr(logwin, logline);
+	wlogprint("%s", logline);
 	wattroff(logwin, A_BOLD);
 	wattroff(logwin, A_BOLD);
 	wlogprint("\n");
 	wlogprint("\n");
 	
 	
@@ -6053,7 +6053,7 @@ refresh:
 	{
 	{
 		applog(LOG_DEBUG, "ManageTUI: %"PRIpreprv": %s", cgpu->proc_repr, msg);
 		applog(LOG_DEBUG, "ManageTUI: %"PRIpreprv": %s", cgpu->proc_repr, msg);
 		wattron(logwin, A_BOLD);
 		wattron(logwin, A_BOLD);
-		waddstr(logwin, msg);
+		wlogprint("%s", msg);
 		wattroff(logwin, A_BOLD);
 		wattroff(logwin, A_BOLD);
 		msg = NULL;
 		msg = NULL;
 	}
 	}