1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-23 04:54:26 +00:00

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

This commit is contained in:
Con Kolivas 2013-08-31 22:53:59 +10:00
commit 85008b84af

View File

@ -609,7 +609,8 @@ static bool getinfo(struct cgpu_info *bflsc, int dev)
return ok;
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);
for (i = 0; i < lines-2; i++) {