Commit 5afe9234682af1b5840f625bb7b0bd114062a619

Vitalii Demianets 2014-06-23T15:46:18

Missing closing zero in api string

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-knc.c b/driver-knc.c
index f98a60f..b100151 100644
--- a/driver-knc.c
+++ b/driver-knc.c
@@ -560,6 +560,7 @@ static struct api_data *knc_api_stats(struct cgpu_info *cgpu)
 				errors += die->core[core].errors;
 				completed += die->core[core].completed;
 			}
+			coremap[die->cores] = '\0';
 			knc_api_die_string("coremap", coremap);
 			knc_api_die_int("errors", errors);
 			knc_api_die_int("shares", shares);