Browse Source

Merge branch 'master' of github.com:ckolivas/cgminer

nfactor-troky
Con Kolivas 11 years ago
parent
commit
85008b84af
  1. 3
      driver-bflsc.c

3
driver-bflsc.c

@ -609,7 +609,8 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
return ok; return ok;
tmp = str_text(buf); tmp = str_text(buf);
strcpy(sc_dev.getinfo, tmp); strncpy(sc_dev.getinfo, tmp, sizeof(sc_dev.getinfo));
sc_dev.getinfo[sizeof(sc_dev.getinfo)-1] = '\0';
free(tmp); free(tmp);
for (i = 0; i < lines-2; i++) { for (i = 0; i < lines-2; i++) {

Loading…
Cancel
Save