From 10d0c8d61d80ce26a7a23380f1cf6764d3245bf1 Mon Sep 17 00:00:00 2001 From: Thorsten Maerz Date: Sun, 20 Mar 2005 18:52:51 +0000 Subject: [PATCH] 2005-03-20 [thorsten] 1.9.6cvs5 * src/compose.c use a more compatible syntax --- ChangeLog-gtk2.claws | 5 +++++ PATCHSETS | 1 + configure.ac | 2 +- src/compose.c | 3 ++- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog-gtk2.claws b/ChangeLog-gtk2.claws index 46557b65c..eefd01bc8 100644 --- a/ChangeLog-gtk2.claws +++ b/ChangeLog-gtk2.claws @@ -1,3 +1,8 @@ +2005-03-20 [thorsten] 1.9.6cvs5 + + * src/compose.c + use a more compatible syntax + 2005-03-20 [thorsten] 1.9.6cvs4 * src/prefs_toolbar.c diff --git a/PATCHSETS b/PATCHSETS index 6f009914e..2d604c792 100644 --- a/PATCHSETS +++ b/PATCHSETS @@ -421,3 +421,4 @@ ( cvs diff -u -r 1.382.2.111 -r 1.382.2.112 src/compose.c; ) > 1.9.6cvs2.patchset ( cvs diff -u -r 1.49.2.36 -r 1.49.2.37 src/procmime.c; ) > 1.9.6cvs3.patchset ( cvs diff -u -r 1.30.2.10 -r 1.30.2.11 src/prefs_toolbar.c; ) > 1.9.6cvs4.patchset +( cvs diff -u -r 1.382.2.112 -r 1.382.2.113 src/compose.c; ) > 1.9.6cvs5.patchset diff --git a/configure.ac b/configure.ac index c0e962fc5..efde26dff 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,7 @@ MINOR_VERSION=9 MICRO_VERSION=6 INTERFACE_AGE=0 BINARY_AGE=0 -EXTRA_VERSION=4 +EXTRA_VERSION=5 EXTRA_RELEASE= EXTRA_GTK2_VERSION= diff --git a/src/compose.c b/src/compose.c index 7086217d9..7424c73cf 100644 --- a/src/compose.c +++ b/src/compose.c @@ -7012,7 +7012,7 @@ static void compose_header_drag_received_cb (GtkWidget *widget, * does not work */ if (!strncmp(email, "mailto:", strlen("mailto:"))) { - gchar decoded[strlen(email)]; + gchar *decoded=g_new(gchar, strlen(email)); int start = 0; email += strlen("mailto:"); @@ -7020,6 +7020,7 @@ static void compose_header_drag_received_cb (GtkWidget *widget, gtk_editable_delete_text(entry, 0, -1); gtk_editable_insert_text(entry, decoded, strlen(decoded), &start); gtk_drag_finish(drag_context, TRUE, FALSE, time); + g_free(decoded); return; } gtk_drag_finish(drag_context, TRUE, FALSE, time); -- 2.25.1