SF.net SVN: geany:[3950] trunk/src/keybindings.c
ntrel at users.sourceforge.net
ntrel at xxxxx
Fri Jul 10 15:42:22 UTC 2009
Revision: 3950
http://geany.svn.sourceforge.net/geany/?rev=3950&view=rev
Author: ntrel
Date: 2009-07-10 15:42:22 +0000 (Fri, 10 Jul 2009)
Log Message:
-----------
Don't use g_alloca() with selected text, it may be too long.
Modified Paths:
--------------
trunk/src/keybindings.c
Modified: trunk/src/keybindings.c
===================================================================
--- trunk/src/keybindings.c 2009-07-10 15:17:27 UTC (rev 3949)
+++ trunk/src/keybindings.c 2009-07-10 15:42:22 UTC (rev 3950)
@@ -1292,10 +1292,10 @@
case GEANY_KEYS_SEARCH_MARKALL:
if (sci_has_selection(sci))
{
- gchar *text = g_alloca(sci_get_selected_text_length(sci) + 1);
+ gchar *text = sci_get_selection_contents(sci);
- sci_get_selected_text(sci, text);
search_mark_all(doc, text, SCFIND_MATCHCASE);
+ g_free(text);
}
else
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Commits
mailing list