diff libpurple/plugins/tcl/tcl_cmd.c @ 24453:0320b4a33432

Backport the 'purple_debug_*(msg)' -> 'purple_debug_*("%s", msg);' fixes. applied changes from fef93b50fe2b6c172be07648cbc70b62a42fcfff through 111d22afa901c48464e4da4d37d1cca3381ae162
author Richard Laager <rlaager@wiktel.com>
date Sun, 16 Nov 2008 06:50:19 +0000
parents 44b4e8bd759b
children 7c871249318b
line wrap: on
line diff
--- a/libpurple/plugins/tcl/tcl_cmd.c	Sun Nov 16 00:10:02 2008 +0000
+++ b/libpurple/plugins/tcl/tcl_cmd.c	Sun Nov 16 06:50:19 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;
 		}