From dbdadb9592ad51426bca0439766d5c22e0e295ee Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Mon, 13 Jan 2003 22:34:54 +0000 Subject: Correctly create the clipboard buffer by using a nul to delimit the uri 2003-01-13 Jeffrey Stedfast * folder-browser.c (folder_browser_copy): Correctly create the clipboard buffer by using a nul to delimit the uri and the list of uids. svn path=/trunk/; revision=19433 --- mail/ChangeLog | 4 ++++ mail/folder-browser.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/mail/ChangeLog b/mail/ChangeLog index ef15999f3b..daea6acd7d 100644 --- a/mail/ChangeLog +++ b/mail/ChangeLog @@ -1,5 +1,9 @@ 2003-01-13 Jeffrey Stedfast + * folder-browser.c (folder_browser_copy): Correctly create the + clipboard buffer by using a nul to delimit the uri and the list of + uids. + * folder-browser-ui.c (folder_browser_ui_add_message): Check the state of message_style in gconf and set the menus accordingly. diff --git a/mail/folder-browser.c b/mail/folder-browser.c index 4c4c29bc3d..68b10ee6c3 100644 --- a/mail/folder-browser.c +++ b/mail/folder-browser.c @@ -720,12 +720,12 @@ folder_browser_copy (GtkWidget *menuitem, FolderBrowser *fb) uids = g_ptr_array_new (); message_list_foreach (fb->message_list, add_uid, uids); - /* format: "uri uid1\0uid2\0uid3\0...\0uidn" */ + /* format: "uri\0uid1\0uid2\0uid3\0...\0uidn" */ /* write the uri portion */ bytes = g_byte_array_new (); g_byte_array_append (bytes, fb->uri, strlen (fb->uri)); - g_byte_array_append (bytes, " ", 1); + g_byte_array_append (bytes, "", 1); /* write the uids */ camel_folder_freeze (fb->folder); -- cgit v1.2.3