On 6/6/2012 11:40 PM, Tom Lane wrote:
> ... [ some experimenting later ... ] What it appears to be doing is
> filling the buffer to the specified length and then returning -1
> anyway. Given your argument that there is no reason for it to fail, I
> suppose the quickest hack is to assume that -1 means the same as
> "buffer filled". regards, tom lane
or we could just say, link against some library that provides a
reasonable snprintf that follows posix?