mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
syslog/syslog_rpmsg.c: out of memory
Signed-off-by: yuanyongjian <yuanyongjian@xiaomi.com>
This commit is contained in:
@@ -233,7 +233,7 @@ static void syslog_rpmsg_addbuf(FAR struct syslog_rpmsg_s *priv,
|
|||||||
if (overwritten)
|
if (overwritten)
|
||||||
{
|
{
|
||||||
priv->tail = priv->head - priv->size;
|
priv->tail = priv->head - priv->size;
|
||||||
priv->buffer[priv->tail] = 0;
|
priv->buffer[SYSLOG_RPMSG_TAILOFF(priv)] = 0;
|
||||||
priv->tail++;
|
priv->tail++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user