Fix a rather sizable number of problems in our homegrown snprintf, such as
authorTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Dec 2005 02:39:43 +0000 (02:39 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Mon, 5 Dec 2005 02:39:43 +0000 (02:39 +0000)
commit89af9d55d08775aba10c8b5b84cab742cfdb8a0c
tree1b3a6a139ef99b1595c74b67441d89999fa28427
parent8b6f61063e54957ca7c702dbccc040be20402bc5
Fix a rather sizable number of problems in our homegrown snprintf, such as
incorrect implementation of argument reordering, arbitrary limit of output
size for sprintf and fprintf, willingness to access more bytes than "%.Ns"
specification allows, wrong formatting of LONGLONG_MIN, various field-padding
bugs and omissions.  I believe it now accurately implements a subset of
the Single Unix Spec requirements (remaining unimplemented features are
documented, too).  Bruce Momjian and Tom Lane.
src/port/snprintf.c