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-local-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/local/camel-local-folder.c')
-rw-r--r-- | camel/providers/local/camel-local-folder.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/camel/providers/local/camel-local-folder.c b/camel/providers/local/camel-local-folder.c index 8fd0a23e2f..c93f8b18c7 100644 --- a/camel/providers/local/camel-local-folder.c +++ b/camel/providers/local/camel-local-folder.c @@ -208,9 +208,9 @@ camel_local_folder_construct(CamelLocalFolder *lf, CamelStore *parent_store, con root_dir_path = camel_local_store_get_toplevel_dir(CAMEL_LOCAL_STORE(folder->parent_store)); /* strip the trailing '/' which is always present */ - len = strlen(root_dir_path); - tmp = alloca(len+1); - strcpy(tmp, root_dir_path); + len = strlen (root_dir_path); + tmp = g_alloca (len + 1); + strcpy (tmp, root_dir_path); if (len>1 && tmp[len-1] == '/') tmp[len-1] = 0; @@ -344,8 +344,8 @@ local_getv(CamelObject *object, CamelException *ex, CamelArgGetV *args) if (tmp == NULL) goto skip; - path = alloca(strlen(tmp)+strlen(folder->full_name)+1); - sprintf(path, "%s/%s", tmp, folder->full_name); + path = g_alloca (strlen (tmp) + strlen (folder->full_name) + 1); + sprintf (path, "%s/%s", tmp, folder->full_name); if ((tmp = getenv("HOME")) && strncmp(tmp, path, strlen(tmp)) == 0) /* $HOME relative path + protocol string */ |