diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2001-07-04 02:46:22 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2001-07-04 02:46:22 +0000 |
commit | f6f4def1a28b6a3528e0391a5eccd9c403881765 (patch) | |
tree | a63db68a37185ce9f718e4e225b64ba6cb6dfbb4 /socket.c | |
parent | d3ce90c880ce40858ff90813738335c8d73dea8d (diff) | |
download | fetchmail-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.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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); |