mirror of
https://github.com/msgpack/msgpack-c.git
synced 2026-01-11 16:43:34 +01:00
In MSGPACK_CHECKED_CALL, the return value of snprintf is incorrectly assumed to mean success if it is less than or equal to the buffer size. The call should only be considered a success if the return value is less than the buffer size. This commit adds two unit tests that illustrates the issue and fixes the issue, making the unit tests pass.
44 KiB
44 KiB