From 2db0cad78c8f91531897cc4fd857ecee7474f4df Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 27 Dec 2009 14:44:21 -0500 Subject: Replace alloca() with g_alloca(). --- e-util/e-alert.c | 2 +- e-util/e-unicode.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'e-util') 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 #include #include -#ifdef HAVE_ALLOCA_H -#include -#endif #include #include -- cgit