Revision: 2112 http://geany-plugins.svn.sourceforge.net/geany-plugins/?rev=2112&view=re... Author: cesspit Date: 2011-07-24 21:12:24 +0000 (Sun, 24 Jul 2011)
Log Message: ----------- Debugger plugin. Fixing bug with long gdb responses parsing.
Modified Paths: -------------- trunk/geany-plugins/debugger/src/callbacks.c
Modified: trunk/geany-plugins/debugger/src/callbacks.c =================================================================== --- trunk/geany-plugins/debugger/src/callbacks.c 2011-07-24 19:43:12 UTC (rev 2111) +++ trunk/geany-plugins/debugger/src/callbacks.c 2011-07-24 21:12:24 UTC (rev 2112) @@ -144,9 +144,9 @@ if (value) { /* create and show calltip */ - gchar msg[1000]; - sprintf(msg, "%s = %s", word->str, value); + gchar* msg = g_strdup_printf("%s = %s", word->str, value) ; scintilla_send_message (editor->sci, SCI_CALLTIPSHOW, nt->position, (long)msg); + g_free(msg); g_free(value); } }
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
plugins-commits@lists.geany.org