diff options
author | Jeffrey Stedfast <fejj@ximian.com> | 2003-02-27 06:51:02 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2003-02-27 06:51:02 +0800 |
commit | 1e957be629378131f87ade9c37d00713f879be38 (patch) | |
tree | 3b421d9b4cb7470ad67fc314651f5f8407f779a6 /camel/camel-multipart-signed.c | |
parent | 77e9bd8497e09c16aff8c0bdd35ac2b333983e67 (diff) | |
download | gsoc2013-evolution-1e957be629378131f87ade9c37d00713f879be38.tar.gz gsoc2013-evolution-1e957be629378131f87ade9c37d00713f879be38.tar.zst gsoc2013-evolution-1e957be629378131f87ade9c37d00713f879be38.zip |
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.
svn path=/trunk/; revision=20081
Diffstat (limited to 'camel/camel-multipart-signed.c')
-rw-r--r-- | camel/camel-multipart-signed.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c index 9dec6a6ced..234f58ef1e 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); |