# HG changeset patch # User Richard Laager # Date 1226642721 0 # Node ID 9290eb3e07bf32d8dc4f1ec52819a2f5ecdaa7a0 # Parent 3b76a175a858ead536af6bcf41cdc202791d7b28 More purple_debug printf(msg) fixes. I must have a newer GCC or something... diff -r 3b76a175a858 -r 9290eb3e07bf finch/gntdebug.c --- 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)); } diff -r 3b76a175a858 -r 9290eb3e07bf libpurple/plugins/tcl/tcl_cmd.c --- 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; } diff -r 3b76a175a858 -r 9290eb3e07bf libpurple/protocols/qq/utils.c --- 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; } diff -r 3b76a175a858 -r 9290eb3e07bf libpurple/proxy.c --- 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 {