syslog/syslog_rpmsg.c: out of memory

Signed-off-by: yuanyongjian <yuanyongjian@xiaomi.com>
This commit is contained in:
yuanyongjian 2024-02-20 10:48:37 +08:00 committed by Xiang Xiao
parent 7567e429b6
commit 9e1750d22c
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}