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/local/camel-mh-store.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/local/camel-mh-store.c')
-rw-r--r-- | camel/providers/local/camel-mh-store.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/camel/providers/local/camel-mh-store.c b/camel/providers/local/camel-mh-store.c index 7fe68ef4b5..73a3d2046f 100644 --- a/camel/providers/local/camel-mh-store.c +++ b/camel/providers/local/camel-mh-store.c @@ -114,15 +114,15 @@ folders_update(const char *root, const char *folder, int mode) char *tmp, *tmpnew, *line = NULL; CamelStream *stream, *in = NULL, *out = NULL; - tmpnew = alloca(strlen(root)+16); - sprintf(tmpnew, "%s.folders~", root); + tmpnew = g_alloca (strlen (root) + 16); + sprintf (tmpnew, "%s.folders~", root); out = camel_stream_fs_new_with_name(tmpnew, O_WRONLY|O_CREAT|O_TRUNC, 0666); if (out == NULL) goto fail; - tmp = alloca(strlen(root)+16); - sprintf(tmp, "%s.folders", root); + tmp = g_alloca (strlen (root) + 16); + sprintf (tmp, "%s.folders", root); stream = camel_stream_fs_new_with_name(tmp, O_RDONLY, 0); if (stream) { in = camel_stream_buffer_new(stream, CAMEL_STREAM_BUFFER_READ); @@ -338,8 +338,8 @@ static void recursive_scan(CamelStore *store, CamelFolderInfo **fip, CamelFolder /* Open the specified directory. */ if (path[0]) { - fullpath = alloca(strlen(root)+strlen(path)+2); - sprintf(fullpath, "%s/%s", root, path); + fullpath = alloca (strlen (root) + strlen (path) + 2); + sprintf (fullpath, "%s/%s", root, path); } else fullpath = (char *)root; @@ -407,8 +407,8 @@ folders_scan(CamelStore *store, const char *root, const char *top, CamelFolderIn GHashTable *visited; int len; - tmp = alloca(strlen(root)+16); - sprintf(tmp, "%s/.folders", root); + tmp = g_alloca (strlen (root) + 16); + sprintf (tmp, "%s/.folders", root); stream = camel_stream_fs_new_with_name(tmp, 0, O_RDONLY); if (stream == NULL) return; |