Copy back the buffer after we've stripped the inprocess field on bflsc
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 70827e3..bc1ecad 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1417,7 +1417,10 @@ static int process_results(struct cgpu_info *bflsc, int dev, char *pbuf, int *no
buf = strdupa(pbuf);
if (!strncasecmp(buf, "INPROCESS", 9)) {
tmp = strsep(&buf, "\n");
- sscanf(tmp, "INPROCESS:%d", in_process);
+ if (likely(buf)) {
+ sscanf(tmp, "INPROCESS:%d", in_process);
+ strcpy(pbuf, buf);
+ }
}
res = tolines(bflsc, dev, buf, &lines, &items, C_GETRESULTS);
if (!res || lines < 1) {