aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-migrate.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-12-28 03:44:21 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-12-28 03:44:21 +0800
commit2db0cad78c8f91531897cc4fd857ecee7474f4df (patch)
tree8e1d0b61e276d171758088fd5b4d80ac1ab3717a /mail/e-mail-migrate.c
parent8080d58ec309459e295be770bc7763f109bdf94b (diff)
downloadgsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.gz
gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.zst
gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.zip
Replace alloca() with g_alloca().
Diffstat (limited to 'mail/e-mail-migrate.c')
-rw-r--r--mail/e-mail-migrate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/e-mail-migrate.c b/mail/e-mail-migrate.c
index 04805324b6..f67ea38c5b 100644
--- a/mail/e-mail-migrate.c
+++ b/mail/e-mail-migrate.c
@@ -1322,13 +1322,13 @@ get_local_store_uri (const gchar *dirname, gchar **namep, gint *indexp)
if (node->name && !strcmp ((gchar *)node->name, "folder")) {
tmp = (gchar *)xmlGetProp (node, (const guchar *)"type");
if (tmp) {
- protocol = alloca(strlen(tmp)+1);
+ protocol = g_alloca(strlen(tmp)+1);
strcpy(protocol, tmp);
xmlFree(tmp);
}
tmp = (gchar *)xmlGetProp (node, (const guchar *)"name");
if (tmp) {
- name = alloca(strlen(tmp)+1);
+ name = g_alloca(strlen(tmp)+1);
strcpy(name, tmp);
xmlFree(tmp);
}