Subject: Re: The _weirdest_ segfault... To: David Brownlee <abs@netbsd.org> From: Andreas Falck <faland-7@sm.luth.se> List: port-alpha Date: 05/17/2000 21:53:04
> Out of curiosity, what value are you passing to malloc()?
>
Of course, I forgot:
temp = malloc((i + 1) * (sizeof(char)));
It allocates memory for a token out of a whitespace-separated string.
/Andreas