* Fixes NB#64997, Modest is now able to send an email after removing the trailing...
authorSergio Villar Senin <svillar@igalia.com>
Wed, 12 Dec 2007 11:11:19 +0000 (11:11 +0000)
committerSergio Villar Senin <svillar@igalia.com>
Wed, 12 Dec 2007 11:11:19 +0000 (11:11 +0000)
pmo-trunk-r3900

src/maemo/modest-address-book.c

index 03e29d6..294541d 100644 (file)
@@ -692,7 +692,7 @@ modest_address_book_check_names (ModestRecptEditor *recpt_editor, gboolean updat
                start_ptr = g_utf8_offset_to_pointer (recipients, start_pos);
                end_ptr = g_utf8_offset_to_pointer (recipients, end_pos);
 
-               address = g_strndup (start_ptr, end_ptr - start_ptr);
+               address = g_strstrip (g_strndup (start_ptr, end_ptr - start_ptr));
                gtk_text_buffer_get_iter_at_offset (buffer, &start_iter, start_pos);
                gtk_text_buffer_get_iter_at_offset (buffer, &end_iter, end_pos);
                gtk_text_buffer_select_range (buffer, &start_iter, &end_iter);