mirror of
https://github.com/GOSTSec/sgminer
synced 2025-09-11 13:42:17 +00:00
Minimise size of serial string we copy in BF1 stats to avoid overflow.
This commit is contained in:
parent
ce285ba602
commit
9dcd4e70a1
@ -266,7 +266,7 @@ static struct api_data *bitfury_api_stats(struct cgpu_info *cgpu)
|
|||||||
version = info->version;
|
version = info->version;
|
||||||
root = api_add_int(root, "Version", &version, true);
|
root = api_add_int(root, "Version", &version, true);
|
||||||
root = api_add_string(root, "Product", info->product, false);
|
root = api_add_string(root, "Product", info->product, false);
|
||||||
sprintf(serial, "%0x", info->serial);
|
sprintf(serial, "%08x", info->serial);
|
||||||
root = api_add_string(root, "Serial", serial, true);
|
root = api_add_string(root, "Serial", serial, true);
|
||||||
|
|
||||||
return root;
|
return root;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user