diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-28 03:44:21 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-28 03:44:21 +0800 |
commit | 2db0cad78c8f91531897cc4fd857ecee7474f4df (patch) | |
tree | 8e1d0b61e276d171758088fd5b4d80ac1ab3717a /mail/message-list.c | |
parent | 8080d58ec309459e295be770bc7763f109bdf94b (diff) | |
download | gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.gz gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.bz2 gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.lz gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.xz gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.tar.zst gsoc2013-evolution-2db0cad78c8f91531897cc4fd857ecee7474f4df.zip |
Replace alloca() with g_alloca().
Diffstat (limited to 'mail/message-list.c')
-rw-r--r-- | mail/message-list.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mail/message-list.c b/mail/message-list.c index 49a839a7ba..6a674bec82 100644 --- a/mail/message-list.c +++ b/mail/message-list.c @@ -4380,13 +4380,13 @@ regen_list_exec (struct _regen_list_msg *m) } else if (m->hidedel) { if (m->hidejunk) { if (m->search) { - expr = alloca(strlen(m->search) + 92); + expr = g_alloca(strlen(m->search) + 92); sprintf(expr, "(and (match-all (and (not (system-flag \"deleted\")) (not (system-flag \"junk\"))))\n %s)", m->search); } else expr = (gchar *) "(match-all (and (not (system-flag \"deleted\")) (not (system-flag \"junk\"))))"; } else { if (m->search) { - expr = alloca(strlen(m->search) + 64); + expr = g_alloca(strlen(m->search) + 64); sprintf(expr, "(and (match-all (not (system-flag \"deleted\")))\n %s)", m->search); } else expr = (gchar *) "(match-all (not (system-flag \"deleted\")))"; @@ -4394,7 +4394,7 @@ regen_list_exec (struct _regen_list_msg *m) } else { if (m->hidejunk) { if (m->search) { - expr = alloca(strlen(m->search) + 64); + expr = g_alloca(strlen(m->search) + 64); sprintf(expr, "(and (match-all (not (system-flag \"junk\")))\n %s)", m->search); } else expr = (gchar *) "(match-all (not (system-flag \"junk\")))"; |