. (google_im_protocol_fro$ Use a const char[] instead of a const char* for
authorTobias Mueller <tobiasmue@svn.gnome.org>
Sun, 1 Mar 2009 15:42:50 +0000 (15:42 +0000)
committerTobias Mueller <tobiasmue@src.gnome.org>
Sun, 1 Mar 2009 15:42:50 +0000 (15:42 +0000)
2009-02-29  Tobias Mueller  <tobiasmue@svn.gnome.org>

    * backends/google/util.c: (_google_rel_from_types). (google_im_protocol_fro$
    * backends/google/google-book.c (google_book_construct_base_uri):
    Use a const char[] instead of a const char* for a fixed sized
    format-string to increase auditability.
    ** Fixes bug 573494

svn path=/trunk/; revision=10116

addressbook/ChangeLog
addressbook/backends/google/google-book.c
addressbook/backends/google/util.c

index 72c4f13..acbed0e 100644 (file)
@@ -1,3 +1,11 @@
+2009-02-29  Tobias Mueller  <tobiasmue@svn.gnome.org>
+
+       * backends/google/util.c: (_google_rel_from_types). (google_im_protocol_from_field_name):
+       * backends/google/google-book.c (google_book_construct_base_uri): 
+       Use a const char[] instead of a const char* for a fixed sized 
+       format-string to increase auditability.
+       ** Fixes bug 573494
+    
 2009-02-25  Milan Crha  <mcrha@redhat.com>
 
        ** Fix for bug #563212
index 26cf4cc..6d0902c 100644 (file)
@@ -448,7 +448,7 @@ google_book_cache_destroy (GoogleBook *book)
 static void
 google_book_construct_base_uri (GoogleBook *book, gboolean use_ssl)
 {
-    const char *format = "%swww.google.com/m8/feeds/contacts/%s/base";
+    const char format[] = "%swww.google.com/m8/feeds/contacts/%s/base";
     char *esc_username;
     GoogleBookPrivate *priv = GET_PRIVATE (book);
 
index 85731ca..8b74ff5 100644 (file)
@@ -410,7 +410,7 @@ _google_rel_from_types (GList *types,
                         const struct RelTypeMap rel_type_map[],
                         int map_len)
 {
-    const char *format = "http://schemas.google.com/g/2005#%s";
+    const char format[] = "http://schemas.google.com/g/2005#%s";
 
     while (types) {
         int i;
@@ -485,7 +485,7 @@ field_name_from_google_im_protocol (const char* google_protocol)
 static char*
 google_im_protocol_from_field_name (const char* field_name)
 {
-    const char *format = "http://schemas.google.com/g/2005#%s";
+    const char format[] = "http://schemas.google.com/g/2005#%s";
 
     if (NULL == field_name ||
         strlen (field_name) < 3) {