This patch fixes vsnprintf and snprintf's return codes to be the number of characters that would have been printed had there been enough room, as is apparently required by C99.