mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
logging/nxscope: fix invalid zalloc size for rxbuf
This commit is contained in:
parent
ceba53402e
commit
a906a76734
1 changed files with 1 additions and 1 deletions
|
|
@ -809,7 +809,7 @@ int nxscope_init(FAR struct nxscope_s *s, FAR struct nxscope_cfg_s *cfg)
|
|||
DEBUGASSERT(cfg->rxbuf_len > 0);
|
||||
s->rxbuf_len = cfg->rxbuf_len;
|
||||
|
||||
s->rxbuf = zalloc(s->chinfo_size);
|
||||
s->rxbuf = zalloc(s->rxbuf_len);
|
||||
if (s->rxbuf == NULL)
|
||||
{
|
||||
ret = -errno;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue