summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-02-26 22:51:02 +0000
committerJeffrey Stedfast <fejj@src.gnome.org>2003-02-26 22:51:02 +0000
commit4c0e4e1e0a244d89af0dd99796671d87aee32378 (patch)
tree3a556a5fde7f62ada6a2d0f1eaf8f35d70378fc5
parent7bd0e254f7a8120a67b62b8a6b13f4516dbe7e50 (diff)
downloadevolution-data-server-4c0e4e1e0a244d89af0dd99796671d87aee32378.tar.gz
Updated to use g_alloca instead of alloca so that we can skip all the
2003-02-26 Jeffrey Stedfast <fejj@ximian.com> * camel-multipart-signed.c: Updated to use g_alloca instead of alloca so that we can skip all the #ifdef checks and skip checking for alloca in configure.in and all that foo.
-rw-r--r--camel/ChangeLog4
-rw-r--r--camel/camel-multipart-signed.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/camel/ChangeLog b/camel/ChangeLog
index 8c8c790ff..24a9e30db 100644
--- a/camel/ChangeLog
+++ b/camel/ChangeLog
@@ -1,5 +1,9 @@
2003-02-26 Jeffrey Stedfast <fejj@ximian.com>
+ * camel-multipart-signed.c: Updated to use g_alloca instead of
+ alloca so that we can skip all the #ifdef checks and skip checking
+ for alloca in configure.in and all that foo.
+
* camel-store.c (camel_store_delete_folder): Make sure the folder
is non-NULL before trying to remove it from the store's
object-bag.
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c
index 9dec6a6ce..234f58ef1 100644
--- a/camel/camel-multipart-signed.c
+++ b/camel/camel-multipart-signed.c
@@ -206,7 +206,7 @@ parse_content(CamelMultipartSigned *mps)
g_byte_array_set_size(mem->buffer, mem->buffer->len-1);
last = mem->buffer->data + mem->buffer->len;
- bound = alloca(strlen(boundary)+5);
+ bound = g_alloca(strlen(boundary)+5);
sprintf(bound, "--%s", boundary);
start = strstr(mem->buffer->data, bound);
@@ -613,7 +613,7 @@ camel_multipart_signed_sign(CamelMultipartSigned *mps, CamelCipherContext *conte
/* create the signature wrapper object */
signature = camel_mime_part_new();
dw = camel_data_wrapper_new();
- type = alloca(strlen(context->sign_protocol) + 32);
+ type = g_alloca(strlen(context->sign_protocol) + 32);
sprintf(type, "%s; name=signature.asc", context->sign_protocol);
camel_data_wrapper_set_mime_type(dw, type);
camel_stream_reset(sigstream);