Revert "Fix writing of CBARG parameters when calling write_config" This reverts commit 07e576cc7a2c6cf97ffe30e11a572f5308fca081.
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;
}
}