Commit 07e576cc7a2c6cf97ffe30e11a572f5308fca081

Con Kolivas 2014-07-16T04:22:59

Fix writing of CBARG parameters when calling write_config

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/cgminer.c b/cgminer.c
index a191a7d..946c438 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -5032,7 +5032,7 @@ void write_config(FILE *fcfg)
 				char *carg = *(char **)opt->u.arg;
 
 				if (carg)
-					fprintf(fcfg, ",\n\"%s\" : \"%s\"", p+2, json_escape(carg));
+					fprintf(fcfg, ",\n\"%s\" : \"%s\"", p+2, carg);
 				continue;
 			}
 		}