From 4175da9660b3442939be9ff15fb5b71be010d6ce Mon Sep 17 00:00:00 2001 From: TingPing Date: Sat, 20 Sep 2014 14:09:15 -0400 Subject: [PATCH] Fix missing header And just use g_snprintf() while at it.. --- src/common/ssl.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/common/ssl.c b/src/common/ssl.c index 5d40d12b..e257d7d8 100644 --- a/src/common/ssl.c +++ b/src/common/ssl.c @@ -35,11 +35,9 @@ #include /* strncpy() */ #include "ssl.h" /* struct cert_info */ -#ifndef HAVE_SNPRINTF #include #include -#define snprintf g_snprintf -#endif +#include "util.h" /* globals */ static struct chiper_info chiper_info; /* static buffer for _SSL_get_cipher_info() */ @@ -57,7 +55,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); }