diff options
author | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-28 07:08:38 +0000 |
---|---|---|
committer | hiro <hiro@ee746299-78ed-0310-b773-934348b2243d> | 2011-06-28 07:08:38 +0000 |
commit | c88da1f3d24c89cd80b2418a2c6cfe40567fd67e (patch) | |
tree | 0fb73e8d2381c585c3301da0333803a8fb8a485d /src | |
parent | 266a461d5df05b1a90ffa9d482b626c1d4480eb7 (diff) |
src/undo.c: undo_insert_text_cb(): removed alloca() call.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@2917 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src')
-rw-r--r-- | src/undo.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -589,9 +589,10 @@ void undo_insert_text_cb(GtkTextBuffer *textbuf, GtkTextIter *iter, pos = gtk_text_iter_get_offset(iter); - Xstrndup_a(text_to_insert, new_text, new_text_length, return); + text_to_insert = g_strndup(new_text, new_text_length); undo_add(text_to_insert, pos, pos + g_utf8_strlen(text_to_insert, -1), UNDO_ACTION_INSERT, undostruct); + g_free(text_to_insert); } void undo_delete_text_cb(GtkTextBuffer *textbuf, GtkTextIter *start, |