pidgin.next.minor: 111d22af: More purple_debug printf(msg) fixes. I m...

rlaager at pidgin.im rlaager at pidgin.im
Fri Nov 14 01:10:31 EST 2008


-----------------------------------------------------------------
Revision: 111d22afa901c48464e4da4d37d1cca3381ae162
Ancestor: 73b0f0ff462b70cccf803b89e4ddffbd66fd3849
Author: rlaager at pidgin.im
Date: 2008-11-14T06:05:21
Branch: im.pidgin.pidgin.next.minor
URL: http://d.pidgin.im/viewmtn/revision/info/111d22afa901c48464e4da4d37d1cca3381ae162

Modified files:
        finch/gntdebug.c libpurple/plugins/tcl/tcl_cmd.c
        libpurple/protocols/qq/utils.c libpurple/proxy.c

ChangeLog: 

More purple_debug printf(msg) fixes. I must have a newer GCC or something...

-------------- next part --------------
============================================================
--- finch/gntdebug.c	3ca1f6885f222d6a4fde9ceeca668031a43a7141
+++ finch/gntdebug.c	1f55b955ff4fe333c1d14ba5435b82856dc70aaf
@@ -233,7 +233,7 @@ file_save(GntFileSel *fs, const char *pa
 	}
 
 	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));
 }
============================================================
--- libpurple/plugins/tcl/tcl_cmd.c	9fac56dcb8304e1b48561bdc9ab427fdc4703581
+++ libpurple/plugins/tcl/tcl_cmd.c	8a109a5402e98753148b56148cec51ec26948e73
@@ -159,7 +159,7 @@ static PurpleCmdRet tcl_cmd_callback(Pur
 
 		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 @@ static PurpleCmdRet tcl_cmd_callback(Pur
 
 			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;
 		}
============================================================
--- libpurple/protocols/qq/utils.c	699c6634e7564909e6bbc5720fa782d223e38c0c
+++ libpurple/protocols/qq/utils.c	c2ec9b111bd7d70ec795fda6284b8788fa180fb6
@@ -325,7 +325,7 @@ void qq_hex_dump(PurpleDebugLevel level,
 	va_end(args);
 
 	if (bytes <= 0) {
-		purple_debug(level, category, arg_s);
+		purple_debug(level, category, "%s", arg_s);
 		return;
 	}
 
============================================================
--- libpurple/proxy.c	c319023ab74877039993e91ad873edb534716d2a
+++ libpurple/proxy.c	8f37a759f25088bde3743c53fd577037a46f2bff
@@ -1342,7 +1342,7 @@ s5_canread_again(gpointer data, gint sou
 
 	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 {


More information about the Commits mailing list