libpurple/plugins/mono/loader/debug-glue.c

Fri, 27 Mar 2009 09:02:22 +0000

author
Mark Doliner <markdoliner@pidgin.im>
date
Fri, 27 Mar 2009 09:02:22 +0000
changeset 26561
79ce052c68dd
parent 15884
4de1981757fc
child 31294
73607ab89c6f
permissions
-rw-r--r--

Fix this compile error:

debug-glue.c: In function ‘purple_debug_glue’:
debug-glue.c:12: error: format not a string literal and no format arguments

#include "mono-glue.h"
#include "debug.h"

void purple_debug_glue(int type, MonoString *cat, MonoString *str)
{
	char *ccat;
	char *cstr;
	
	ccat = mono_string_to_utf8(cat);
	cstr = mono_string_to_utf8(str);
	
	purple_debug(type, ccat, "%s", cstr);
	
	g_free(ccat);
	g_free(cstr);
}

mercurial