diff options
author | TingPing <tingping@tingping.se> | 2014-09-20 14:09:15 -0400 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-09-20 14:09:38 -0400 |
commit | 760d18b6e7926c60ebe52dda3b2025000aa584d6 (patch) | |
tree | 315cfbb8deafdd58380b62a09d945e17b634713e /src | |
parent | f38925740321b9310618d23d504e9272bd45df2b (diff) |
Fix missing header
And just use g_snprintf() while at it..
Diffstat (limited to 'src')
-rw-r--r-- | src/common/ssl.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c index 1ef28cfd..cfa9b6cf 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -33,11 +33,9 @@ #include <string.h> /* strncpy() */ #include "ssl.h" /* struct cert_info */ -#ifndef HAVE_SNPRINTF #include <glib.h> #include <glib/gprintf.h> -#define snprintf g_snprintf -#endif +#include "util.h" /* globals */ static struct chiper_info chiper_info; /* static buffer for _SSL_get_cipher_info() */ @@ -55,7 +53,7 @@ __SSL_fill_err_buf (char *funcname) err = ERR_get_error (); ERR_error_string (err, buf); - snprintf (err_buf, sizeof (err_buf), "%s: %s (%d)\n", funcname, buf, err); + g_snprintf (err_buf, sizeof (err_buf), "%s: %s (%d)\n", funcname, buf, err); } |