]> granicus.if.org Git - json-c/commit
sprintbuf(): test for all vsnprintf error values
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 27 Feb 2022 20:45:28 +0000 (21:45 +0100)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sun, 6 Mar 2022 15:05:32 +0000 (16:05 +0100)
commit94b2a0cb29af1bc1fd5dece8c1fbf83acd210cb5
tree4951e4a4b91d6263a7d0d53efcca4d63283880ec
parentbd56cc8bf77afa6e2c94cc62539d1fda2d1a86b6
sprintbuf(): test for all vsnprintf error values

The POSIX specification states that vsnprintf returns "a negative value"
in case of error, but the code checks explicitly only for -1.
printbuf.c