]> Zhao Yanbai Git Server - minix.git/commit
libminc:vsnprintf add support for NULL destination pointer.
authorKees Jongenburger <kees.jongenburger@gmail.com>
Mon, 26 May 2014 14:47:44 +0000 (16:47 +0200)
committerLionel Sambuc <lionel@minix3.org>
Mon, 28 Jul 2014 15:05:38 +0000 (17:05 +0200)
commit51b1cfd6ea50f569ca1370d37647dacd93eb9592
tree40a7e98e4e5e6ce2e1da1ab6300ae972dc5c1c03
parenta1d08ebddc22f3ef8bc635c26fea51f82835d42e
libminc:vsnprintf add support for NULL destination pointer.

-Add support for returning the amount of characters that would have been
written if the buffer was large enough.
-Protect code against NULL dereference.

Change-Id: Ifb2041f4757e8a99f255d94768ba19621bc0ea16

http://gerrit.minix3.org/#/c/2560/
sys/lib/libsa/subr_prf.c