Skip to content
Snippets Groups Projects
Unverified Commit 25df5353 authored by Dimitri Papadopoulos Orfanos's avatar Dimitri Papadopoulos Orfanos Committed by GitHub
Browse files

Properly check vsnprintf() return value

The manual page reads:
Thus, a return value of size or more means that the output was truncated.

Also there is no need to explictely add a NUL character '\0' at the
end of the formatting string. The C compiler automatically adds the
NUL character at the end of string literals, and vsnprintf() always
terminates its output with a NUL character, whether truncating or not.
parent 2ac6ead6
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment