arcao / Syslog

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

Fix off-by-one in log format handling #9

Closed janLo closed 6 years ago

janLo commented 7 years ago

The length that vsnprintf takes is including the termination char. Giving only the strlen() result leads to truncated results where there is always the last char missing.

arcao commented 6 years ago

This was fixed in 6cc3518a694d8b7fc52b65f386af0a687d7c5ba7.