From 6ea8782c1800ab61101120137b34451fd6b03a61 Mon Sep 17 00:00:00 2001 From: dequis Date: Fri, 9 Oct 2015 00:05:27 -0300 Subject: skype: use g_vsnprintf() instead of vsnprintf() More prefixes = better. The G stands for "good". (it also fixes the warning about _BSD_SOURCE being deprecated) --- protocols/skype/skype.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/skype/skype.c b/protocols/skype/skype.c index d42d98eb..ade5b8c6 100644 --- a/protocols/skype/skype.c +++ b/protocols/skype/skype.c @@ -20,7 +20,6 @@ */ #define _XOPEN_SOURCE -#define _BSD_SOURCE #include #include #include @@ -187,7 +186,7 @@ int skype_printf(struct im_connection *ic, char *fmt, ...) char str[IRC_LINE_SIZE]; va_start(args, fmt); - vsnprintf(str, IRC_LINE_SIZE, fmt, args); + g_vsnprintf(str, IRC_LINE_SIZE, fmt, args); va_end(args); return skype_write(ic, str, strlen(str)); -- cgit v1.2.3