libbladeRF: fix GCC 7 error

GCC 7 rightfully believes that this buffer can be 11 bytes long. Counting the
additional NULL byte, this buffer should be at least 12 bytes in size.
This commit is contained in:
Robert Ghilduta 2017-07-05 10:58:48 -07:00
commit 2ce14de630

View file

@ -200,7 +200,7 @@ error:
static inline void fill_fpga_metadata_page(uint8_t *metadata,
size_t actual_bitstream_len)
{
char len_str[10];
char len_str[12];
int idx = 0;
memset(len_str, 0, sizeof(len_str));