mirror of
https://github.com/apache/nuttx.git
synced 2026-05-25 01:39:44 +08:00
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:
committed by
Petro Karashchenko
parent
66f49c1f3c
commit
d04ed9587b
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user