aboutsummaryrefslogtreecommitdiffstats
path: root/em-format/em-format.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 /em-format/em-format.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 'em-format/em-format.c')
-rw-r--r--em-format/em-format.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/em-format/em-format.c b/em-format/em-format.c
index d3ab13b013..305feb9178 100644
--- a/em-format/em-format.c
+++ b/em-format/em-format.c
@@ -358,7 +358,7 @@ em_format_fallback_handler(EMFormat *emf, const gchar *mime_type)
else {
gsize len = (s-mime_type)+1;
- mime = alloca(len+2);
+ mime = g_alloca(len+2);
strncpy(mime, mime_type, len);
strcpy(mime+len, "*");
}