Support non-standard vsnprintf() return code
authorAlexander Barton <alex@barton.de>
Sat, 4 Jan 2014 22:57:05 +0000 (23:57 +0100)
committerAlexander Barton <alex@barton.de>
Sat, 4 Jan 2014 22:57:05 +0000 (23:57 +0100)
commit5d88030bd1a197041f84530a88c2590e6bb1bbb1
treefa7f13b50eb15f3f54bbf08e4d1566de1b91784c
parent8872653ef6155bdaabd15c62ee67bd23d119305b
Support non-standard vsnprintf() return code

C99 states that vsnprintf() "returns the number of characters that
would have been printed if the n were unlimited"; but according to the
Linux manual page "glibc until 2.0.6 would return -1 when the output
was truncated" -- so we have to handle both cases ...
src/ngircd/conn.c
src/portab/portabtest.c