Mercurial > pidgin
changeset 25833:9290eb3e07bf
More purple_debug printf(msg) fixes. I must have a newer GCC or something...
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Fri, 14 Nov 2008 06:05:21 +0000 |
parents | 3b76a175a858 |
children | 94fa7211eb98 |
files | finch/gntdebug.c libpurple/plugins/tcl/tcl_cmd.c libpurple/protocols/qq/utils.c libpurple/proxy.c |
diffstat | 4 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/finch/gntdebug.c Fri Nov 14 05:58:54 2008 +0000 +++ b/finch/gntdebug.c Fri Nov 14 06:05:21 2008 +0000 @@ -233,7 +233,7 @@ } fprintf(fp, "Finch Debug Log : %s\n", purple_date_format_full(NULL)); - fprintf(fp, tv->string->str); + fprintf(fp, "%s", tv->string->str); fclose(fp); gnt_widget_destroy(GNT_WIDGET(fs)); }
--- a/libpurple/plugins/tcl/tcl_cmd.c Fri Nov 14 05:58:54 2008 +0000 +++ b/libpurple/plugins/tcl/tcl_cmd.c Fri Nov 14 06:05:21 2008 +0000 @@ -159,7 +159,7 @@ errorstr = g_strdup_printf("error evaluating callback: %s\n", Tcl_GetString(Tcl_GetObjResult(handler->interp))); - purple_debug(PURPLE_DEBUG_ERROR, "tcl", errorstr); + purple_debug(PURPLE_DEBUG_ERROR, "tcl", "%s", errorstr); *errors = errorstr; retval = PURPLE_CMD_RET_FAILED; } else { @@ -170,7 +170,7 @@ errorstr = g_strdup_printf("Error retreiving procedure result: %s\n", Tcl_GetString(Tcl_GetObjResult(handler->interp))); - purple_debug(PURPLE_DEBUG_ERROR, "tcl", errorstr); + purple_debug(PURPLE_DEBUG_ERROR, "tcl", "%s", errorstr); *errors = errorstr; retval = PURPLE_CMD_RET_FAILED; }
--- a/libpurple/protocols/qq/utils.c Fri Nov 14 05:58:54 2008 +0000 +++ b/libpurple/protocols/qq/utils.c Fri Nov 14 06:05:21 2008 +0000 @@ -325,7 +325,7 @@ va_end(args); if (bytes <= 0) { - purple_debug(level, category, arg_s); + purple_debug(level, category, "%s", arg_s); return; }
--- a/libpurple/proxy.c Fri Nov 14 05:58:54 2008 +0000 +++ b/libpurple/proxy.c Fri Nov 14 06:05:21 2008 +0000 @@ -1342,7 +1342,7 @@ if ((buf[0] != 0x05) || (buf[1] != 0x00)) { if ((buf[0] == 0x05) && (buf[1] < 0x09)) { - purple_debug_error("socks5 proxy", socks5errors[buf[1]]); + purple_debug_error("socks5 proxy", "%s", socks5errors[buf[1]]); purple_proxy_connect_data_disconnect(connect_data, socks5errors[buf[1]]); } else {