Replaced OpenSSL's implementation of printf-like functions with calls to
snprintf.

Losely based on a patch by the OpenBSD team.