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
+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
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);
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;
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) {