Browse Source

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

nfactor-troky
Con Kolivas 11 years ago
parent
commit
9dcd4e70a1
  1. 2
      driver-bitfury.c

2
driver-bitfury.c

@ -266,7 +266,7 @@ static struct api_data *bitfury_api_stats(struct cgpu_info *cgpu) @@ -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;

Loading…
Cancel
Save