[sylpheed:31096] Re: Trouble parsing attachments

Hiroyuki Yamamoto hiro-y at kcn.ne.jp
Wed Apr 4 17:33:56 JST 2007


Hello,

On Wed, 4 Apr 2007 08:53:26 +0200
Colin Leroy <colin at colino.net> wrote:

> On Wed, 4 Apr 2007 15:49:36 +0900 04 Apr 2007 at 15h04, Hiroyuki
> Yamamoto wrote:
> 
> Hi, 
> 
> > Hmm, maybe 256 is too big since the function is using recursive
> > call, and it allocates 8KB buffer on the stack for each call.
> 
> -gchar buf[8192];
> +gchar *buf = g_malloc(8192);
> ...
> +g_free(buf);
> 
> ;)

Already did that in svn trunk :) (max recursion level is now 64)

-- 
Hiroyuki Yamamoto <hiro-y at kcn.ne.jp>


More information about the Sylpheed mailing list