aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2001-07-04 02:46:22 +0000
committerEric S. Raymond <esr@thyrsus.com>2001-07-04 02:46:22 +0000
commitf6f4def1a28b6a3528e0391a5eccd9c403881765 (patch)
treea63db68a37185ce9f718e4e225b64ba6cb6dfbb4 /socket.c
parentd3ce90c880ce40858ff90813738335c8d73dea8d (diff)
downloadfetchmail-f6f4def1a28b6a3528e0391a5eccd9c403881765.tar.gz
fetchmail-f6f4def1a28b6a3528e0391a5eccd9c403881765.tar.bz2
fetchmail-f6f4def1a28b6a3528e0391a5eccd9c403881765.zip
Don't rely on snprintf.
svn path=/trunk/; revision=3393
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c4
1 files changed, 4 insertions, 0 deletions
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);