1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-02-05 03:24:26 +00:00

Minimise size of serial string we copy in BF1 stats to avoid overflow.

This commit is contained in:
Con Kolivas 2013-09-26 11:48:38 +10:00
parent ce285ba602
commit 9dcd4e70a1

View File

@ -266,7 +266,7 @@ static struct api_data *bitfury_api_stats(struct cgpu_info *cgpu)
version = info->version;
root = api_add_int(root, "Version", &version, true);
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);
return root;