From f6f4def1a28b6a3528e0391a5eccd9c403881765 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Wed, 4 Jul 2001 02:46:22 +0000 Subject: Don't rely on snprintf. svn path=/trunk/; revision=3393 --- socket.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'socket.c') diff --git a/socket.c b/socket.c index 12dca7ab..3ae38016 100644 --- a/socket.c +++ b/socket.c @@ -750,7 +750,11 @@ int SSL_verify_callback( int ok_return, X509_STORE_CTX *ctx, int strict ) tp = text; te = text + sizeof(text); for (i = 0; i < dsz; i++) { +#ifdef HAVE_SNPRINTF esz = snprintf(tp, te - tp, i > 0 ? ":%02X" : "%02X", digest[i]); +#else + esz = sprintf(tp, i > 0 ? ":%02X" : "%02X", digest[i]); +#endif if (esz >= te - tp) { report(stderr, _("Digest text buffer too small!\n")); return (0); -- cgit v1.2.3