drivers/wireless/gs2200m.c: fix warning
/home/raiden00/git/RTOS/nuttx/nuttx/drivers/wireless/gs2200m.c:2071:3: note: ‘snprintf’ output between 7 and 9 bytes into a destination of size 8 2071 | snprintf(cmd, sizeof(cmd), "ATE%d\r\n", on); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This commit is contained in:
parent
04eeef06a7
commit
84fb99b118
@ -2066,7 +2066,7 @@ static enum pkt_type_e gs2200m_enable_bulk(FAR struct gs2200m_dev_s *dev,
|
||||
static enum pkt_type_e gs2200m_enable_echo(FAR struct gs2200m_dev_s *dev,
|
||||
uint8_t on)
|
||||
{
|
||||
char cmd[8];
|
||||
char cmd[9];
|
||||
|
||||
snprintf(cmd, sizeof(cmd), "ATE%d\r\n", on);
|
||||
return gs2200m_send_cmd2(dev, cmd);
|
||||
|
Loading…
Reference in New Issue
Block a user