From a84f11d6bd217de89e73b1880546a3af48cfd9c8 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Tue, 17 Dec 2002 21:46:44 +0000 Subject: Replace calls to g_string_sprintfa() with g_string_append_printf() since 2002-12-17 Jeffrey Stedfast * 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 --- camel/providers/local/camel-mh-store.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'camel/providers/local/camel-mh-store.c') 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; -- cgit v1.2.3