drivers/syslog: Call up_nputs in syslog_default_write

since the buffer may not be terminated by null

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-07-21 19:25:22 +08:00 committed by Petro Karashchenko
parent 66f49c1f3c
commit d04ed9587b

View file

@ -217,7 +217,7 @@ static ssize_t syslog_default_write(FAR struct syslog_channel_s *channel,
FAR const char *buffer, size_t buflen)
{
#if defined(CONFIG_ARCH_LOWPUTC)
up_puts(buffer);
up_nputs(buffer, buflen);
#endif
UNUSED(channel);