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-utils.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-utils.c')
-rw-r--r-- | camel/providers/imap/camel-imap-utils.c | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/camel/providers/imap/camel-imap-utils.c b/camel/providers/imap/camel-imap-utils.c index fc507398db..bb8fdef00a 100644 --- a/camel/providers/imap/camel-imap-utils.c +++ b/camel/providers/imap/camel-imap-utils.c @@ -20,6 +20,7 @@ * */ + #ifdef HAVE_CONFIG_H #include <config.h> #endif @@ -30,10 +31,6 @@ #include <time.h> #include <errno.h> -#ifdef HAVE_ALLOCA_H -#include <alloca.h> -#endif - #include "camel-imap-utils.h" #include "camel-imap-summary.h" #include "camel-imap-store.h" @@ -1010,17 +1007,17 @@ imap_uid_array_to_set (CamelFolderSummary *summary, GPtrArray *uids, int uid, ss range = TRUE; else { if (range) { - g_string_sprintfa (gset, ":%lu", last_uid); + g_string_append_printf (gset, ":%lu", last_uid); range = FALSE; } - g_string_sprintfa (gset, ",%lu", this_uid); + g_string_append_printf (gset, ",%lu", this_uid); } last_uid = this_uid; } if (range) - g_string_sprintfa (gset, ":%lu", last_uid); + g_string_append_printf (gset, ":%lu", last_uid); *lastuid = uid; @@ -1136,21 +1133,21 @@ imap_mailbox_encode (const unsigned char *in, size_t inlen) { char *buf; - buf = alloca(inlen+1); - memcpy(buf, in, inlen); + buf = g_alloca (inlen + 1); + memcpy (buf, in, inlen); buf[inlen] = 0; - - return camel_utf8_utf7(buf); + + return camel_utf8_utf7 (buf); } char * imap_mailbox_decode (const unsigned char *in, size_t inlen) { char *buf; - - buf = alloca(inlen+1); - memcpy(buf, in, inlen); + + buf = g_alloca (inlen + 1); + memcpy (buf, in, inlen); buf[inlen] = 0; - - return camel_utf7_utf8(buf); + + return camel_utf7_utf8 (buf); } |