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:
parent
66f49c1f3c
commit
d04ed9587b
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue