syslog/syslog_rpmsg.c: out of memory
Signed-off-by: yuanyongjian <yuanyongjian@xiaomi.com>
This commit is contained in:
parent
7567e429b6
commit
9e1750d22c
|
@ -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++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue