On Mon, May 01, 2000 at 10:19:57PM +0200, Federico Barbazza wrote:
> Hi all,
> i have a big program with stralloc variable.
> So, in qmail-pop3d i declared a variable:
> stralloc *arrayname;
> arrayname = (stralloc *) alloc(numm * sizeof(stralloc))
Is that the exact code?
If so, should be it sizeof(stralloc) be the sizeof the structure you
are playing with?
> with numm as number of message.
> When i try to do a stralloc_copys(&arrayname[i], "hello"), qmail-pop3d
> exit with a "segmentation fault".
> The strange thing is that i get this error only when numm is great than
> 25.I thought ...may be a memory problem....or most probably i'm not a
> really good c programmer.
>
> Thanks for all your suggest
>
> Federico.