1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-12-21 23:28:51 -05:00

Fix missing header

And just use g_snprintf() while at it..
This commit is contained in:
TingPing 2014-09-20 14:09:15 -04:00
parent f389257403
commit 760d18b6e7

View File

@ -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);
}