arcao / Syslog

An Arduino library for logging to Syslog server in IETF format (RFC 5424) and BSD format (RFC 3164)
MIT License
119 stars 48 forks source link

Fix vsnprintf usage #11

Closed sysoleg closed 7 years ago

sysoleg commented 7 years ago

As per man page, vsnprintf size param should be specified with account of terminating null byte. Otherwise we lose the last byte of syslog message when using logf method.

thinrope commented 7 years ago

Looks good to me! This will be better than PR #9 , so we should mark that one as duplicate.