diff options
author | dequis <dx@dxzone.com.ar> | 2015-10-09 00:05:27 -0300 |
---|---|---|
committer | dequis <dx@dxzone.com.ar> | 2015-10-13 01:23:49 -0300 |
commit | 6ea8782c1800ab61101120137b34451fd6b03a61 (patch) | |
tree | b47a5ddb6e9421491858a524e7238f8f63e01a26 | |
parent | b87e5dc342b45e35656a747345b8496217f3b130 (diff) |
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)
-rw-r--r-- | protocols/skype/skype.c | 3 |
1 files changed, 1 insertions, 2 deletions
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 <poll.h> #include <stdio.h> #include <bitlbee.h> @@ -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)); |