mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 21:34:07 +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)
|
||||
{
|
||||
priv->tail = priv->head - priv->size;
|
||||
priv->buffer[priv->tail] = 0;
|
||||
priv->buffer[SYSLOG_RPMSG_TAILOFF(priv)] = 0;
|
||||
priv->tail++;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user