Commit a0316aca1260f77868c2d4393e4cd3e457acaabb

Con Kolivas 2014-07-17T14:32:33

Revert "Fix writing of CBARG parameters when calling write_config" This reverts commit 07e576cc7a2c6cf97ffe30e11a572f5308fca081.

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