** Fixes bug #558727 (patch by Frederic van Starbmann)
authorMatthew Barnes <mbarnes@redhat.com>
Fri, 31 Oct 2008 21:19:41 +0000 (21:19 +0000)
committerMatthew Barnes <mbarnes@src.gnome.org>
Fri, 31 Oct 2008 21:19:41 +0000 (21:19 +0000)
2008-10-31  Matthew Barnes  <mbarnes@redhat.com>

** Fixes bug #558727 (patch by Frederic van Starbmann)

* addressbook/backends/ldap/e-book-backend-ldap.c
(get_ldap_library_info):
* camel/camel-vtrash-folder.c (vtrash_append_message),
(vtrash_transfer_messages_to):
* libebackend/e-data-server-module (e_data_server_module_load):
* servers/groupwise/create-account.c (add_account):
Fix some potential string format crashes.

svn path=/trunk/; revision=9717

ChangeLog
addressbook/ChangeLog
addressbook/backends/ldap/e-book-backend-ldap.c
camel/ChangeLog
camel/camel-vtrash-folder.c
libebackend/e-data-server-module.c
servers/groupwise/ChangeLog
servers/groupwise/create-account.c

index 7b27b51..7ce2a1d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2008-10-31  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes part of bug #558727 (patch by Frederic van Starbmann)
+
+       * libebackend/e-data-server-module (e_data_server_module_load):
+       Fix some potential string format crashes.
+
 2008-10-01  Suman Manjunath  <msuman@novell.com>
 
        ** Fix for bug #554540
index f519ded..8ac2890 100644 (file)
@@ -1,3 +1,10 @@
+2008-10-31  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes part of bug #558727 (patch by Frederic van Starbmann)
+
+       * backends/ldap/e-book-backend-ldap.c (get_ldap_library_info):
+       Fix a potential string format crash.
+
 2008-10-17  Milan Crha  <mcrha@redhat.com>
 
        ** Part of fix for bug #364542
index e7448f1..f119804 100644 (file)
@@ -664,7 +664,7 @@ get_ldap_library_info (void)
                /* yuck.  we have to free these? */
                for (i = 0; info.ldapai_extensions[i]; i++) {
                        char *extension = info.ldapai_extensions[i];
-                       g_message (extension);
+                       g_message ("%s", extension);
                        ldap_memfree (extension);
                }
                ldap_memfree (info.ldapai_extensions);
index 37395c9..5de5ce0 100644 (file)
@@ -1,3 +1,11 @@
+2008-10-31  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes part of bug #558727 (patch by Frederic van Starbmann)
+
+       * camel-vtrash-folder.c (vtrash_append_message),
+       (vtrash_transfer_messages_to):
+       Fix some potential string format crashes.
+
 2008-10-31  Sankar P  <psankar@novell.com>
 
        ** Fix for bnc bugs #440502, #209514, #434958, #434946, 
index 3eec788..27a691d 100644 (file)
@@ -208,7 +208,7 @@ vtrash_append_message (CamelFolder *folder, CamelMimeMessage *message,
                       const CamelMessageInfo *info, char **appended_uid,
                       CamelException *ex)
 {
-       camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, 
+       camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, "%s",
                             _(vdata[((CamelVTrashFolder *)folder)->type].error_copy));
 }
 
@@ -257,7 +257,7 @@ vtrash_transfer_messages_to (CamelFolder *source, GPtrArray *uids,
        if (CAMEL_IS_VTRASH_FOLDER (dest)) {
                /* Copy to trash is meaningless. */
                if (!delete_originals) {
-                       camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, 
+                       camel_exception_setv(ex, CAMEL_EXCEPTION_SYSTEM, "%s",
                                             _(vdata[((CamelVTrashFolder *)dest)->type].error_copy));
                        return;
                }
index b68384b..3adb2ce 100644 (file)
@@ -77,7 +77,7 @@ e_data_server_module_load (GTypeModule *gmodule)
        module->library = g_module_open (module->path, G_MODULE_BIND_LAZY);
 
        if (!module->library) {
-               g_warning (g_module_error ());
+               g_warning ("%s", g_module_error ());
                return FALSE;
        }
 
@@ -91,7 +91,7 @@ e_data_server_module_load (GTypeModule *gmodule)
                              "eds_module_list_types",
                              (gpointer *)&module->list_types)) {
 
-               g_warning (g_module_error ());
+               g_warning ("%s", g_module_error ());
                g_module_close (module->library);
 
                return FALSE;
index 0f8f9d8..247fc99 100644 (file)
@@ -1,3 +1,10 @@
+2008-10-31  Matthew Barnes  <mbarnes@redhat.com>
+
+       ** Fixes part of bug #558727 (crash by Frederic van Starbmann)
+
+       * create-account.c (add_account):
+       Fix a potential string format crash.
+
 2008-10-31  Sankar P  <psankar@novell.com>
 
        ** Fix for bnc bugs #440502, #209514, #434958, #434946, 
index b8ca5d3..8b71ee4 100644 (file)
@@ -18,7 +18,7 @@ add_account (const char *conf_key, const char *hostname, const char *username)
 
        source_list = e_source_list_new_for_gconf (conf_client, conf_key);
 
-       group_name = g_strdup_printf (hostname);
+       group_name = g_strdup (hostname);
        group = e_source_group_new (group_name, "groupwise://");
        e_source_list_add_group (source_list, group, -1);