evolution-data-server r10116 - in trunk/addressbook: . backends/google



Author: tobiasmue
Date: Sun Mar  1 15:42:50 2009
New Revision: 10116
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10116&view=rev

Log:
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



Modified:
   trunk/addressbook/ChangeLog
   trunk/addressbook/backends/google/google-book.c
   trunk/addressbook/backends/google/util.c

Modified: trunk/addressbook/backends/google/google-book.c
==============================================================================
--- trunk/addressbook/backends/google/google-book.c	(original)
+++ trunk/addressbook/backends/google/google-book.c	Sun Mar  1 15:42:50 2009
@@ -448,7 +448,7 @@
 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);
 

Modified: trunk/addressbook/backends/google/util.c
==============================================================================
--- trunk/addressbook/backends/google/util.c	(original)
+++ trunk/addressbook/backends/google/util.c	Sun Mar  1 15:42:50 2009
@@ -410,7 +410,7 @@
                         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 @@
 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) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]