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:
parent
77c4c1b750
commit
2ce14de630
1 changed files with 1 additions and 1 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue