From 531d7a496f4d673a62615175b9332536e924502f Mon Sep 17 00:00:00 2001 From: Not Zed Date: Thu, 27 Feb 2003 04:53:09 +0000 Subject: Undo jeff's changes. 2003-02-27 Not Zed * camel-multipart-signed.c: Undo jeff's changes. * providers/local/camel-spool-store.c (scan_dir): Fix a paste-o in the object_bag_get key. svn path=/trunk/; revision=20084 --- camel/camel-multipart-signed.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'camel/camel-multipart-signed.c') diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c index 234f58ef1e..79252c85d0 100644 --- a/camel/camel-multipart-signed.c +++ b/camel/camel-multipart-signed.c @@ -24,6 +24,10 @@ #include #endif +#ifdef HAVE_ALLOCA_H +#include +#endif + #include #include @@ -206,7 +210,7 @@ parse_content(CamelMultipartSigned *mps) g_byte_array_set_size(mem->buffer, mem->buffer->len-1); last = mem->buffer->data + mem->buffer->len; - bound = g_alloca(strlen(boundary)+5); + bound = alloca(strlen(boundary)+5); sprintf(bound, "--%s", boundary); start = strstr(mem->buffer->data, bound); @@ -613,7 +617,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 = g_alloca(strlen(context->sign_protocol) + 32); + type = 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); -- cgit v1.2.3