diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2002-12-18 05:46:44 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2002-12-18 05:46:44 +0800 |
commit | a84f11d6bd217de89e73b1880546a3af48cfd9c8 (patch) | |
tree | 12820d1698832a64f7f7859224ee0b89f18b9e35 /camel/providers/imap/camel-imap-folder.c | |
parent | 5c90cbb6e1a5a1f4cf59c7554e273aec4f52fa22 (diff) | |
download | gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.gz gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.bz2 gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.lz gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.xz gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.tar.zst gsoc2013-evolution-a84f11d6bd217de89e73b1880546a3af48cfd9c8.zip |
Replace calls to g_string_sprintfa() with g_string_append_printf() since
2002-12-17 Jeffrey Stedfast <fejj@ximian.com>
* providers/imap/camel-imap-utils.c: Replace calls to
g_string_sprintfa() with g_string_append_printf() since the former
seems to have been deprecated.
* providers/imap/camel-imap-search.c: Same.
* providers/imap/camel-imap-folder.c: Here too.
* providers/local/camel-mbox-summary.c: And here.
* providers/local/camel-local-summary.c: Replace
g_string_sprintf() with g_string_printf().
* camel-data-cache.c (data_cache_expire): Replace
g_string_sprintf() with g_string_printf().
* camel-url.c: Replace calls to g_string_sprintfa() with
g_string_append_printf() since the former seems to have been
deprecated.
* camel-service.c: Same.
* camel-mime-utils.c: Here too.
svn path=/trunk/; revision=19154
Diffstat (limited to 'camel/providers/imap/camel-imap-folder.c')
-rw-r--r-- | camel/providers/imap/camel-imap-folder.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/camel/providers/imap/camel-imap-folder.c b/camel/providers/imap/camel-imap-folder.c index e95904027a..e63dc73726 100644 --- a/camel/providers/imap/camel-imap-folder.c +++ b/camel/providers/imap/camel-imap-folder.c @@ -23,6 +23,7 @@ * USA */ + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -689,7 +690,7 @@ get_matching (CamelFolder *folder, guint32 flags, guint32 mask, char **set) if (range != -1) { if (range != i - 1) { info = matches->pdata[matches->len - 1]; - g_string_sprintfa (gset, ":%s", camel_message_info_uid (info)); + g_string_append_printf (gset, ":%s", camel_message_info_uid (info)); } range = -1; } @@ -702,12 +703,12 @@ get_matching (CamelFolder *folder, guint32 flags, guint32 mask, char **set) range = i; if (gset->len) g_string_append_c (gset, ','); - g_string_sprintfa (gset, "%s", camel_message_info_uid (info)); + g_string_append_printf (gset, "%s", camel_message_info_uid (info)); } if (range != -1 && range != max - 1) { info = matches->pdata[matches->len - 1]; - g_string_sprintfa (gset, ":%s", camel_message_info_uid (info)); + g_string_append_printf (gset, ":%s", camel_message_info_uid (info)); } if (matches->len) { @@ -1720,7 +1721,7 @@ get_content (CamelImapFolder *imap_folder, const char *uid, /* we assume that part->content_type is more accurate/full than ci->type */ camel_data_wrapper_set_mime_type_field (CAMEL_DATA_WRAPPER (body_mp), part->content_type); - spec = alloca (strlen (part_spec) + 6); + spec = g_alloca (strlen (part_spec) + 6); sprintf (spec, part_spec[0] ? "%s.TEXT" : "TEXT", part_spec); g_free (part_spec); |