aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
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 /e-util
parent8080d58ec309459e295be770bc7763f109bdf94b (diff)
downloadgsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.gz
gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.zst
gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.zip
Replace alloca() with g_alloca().
Diffstat (limited to 'e-util')
-rw-r--r--e-util/e-alert.c2
-rw-r--r--e-util/e-unicode.c3
2 files changed, 1 insertions, 4 deletions
diff --git a/e-util/e-alert.c b/e-util/e-alert.c
index 01fade0e32..797ba33798 100644
--- a/e-util/e-alert.c
+++ b/e-util/e-alert.c
@@ -430,7 +430,7 @@ e_alert_constructed (GObject *obj)
g_return_if_fail (alert_table);
g_return_if_fail (alert->priv->tag);
- domain = alloca(strlen(alert->priv->tag)+1);
+ domain = g_alloca(strlen(alert->priv->tag)+1);
strcpy(domain, alert->priv->tag);
id = strchr(domain, ':');
if (id)
diff --git a/e-util/e-unicode.c b/e-util/e-unicode.c
index cc9139d125..84c0a1d7b8 100644
--- a/e-util/e-unicode.c
+++ b/e-util/e-unicode.c
@@ -29,9 +29,6 @@
#include <stdio.h>
#include <ctype.h>
#include <iconv.h>
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>