t 11:40 PM, Rob Browning wrote:
> Jeff Fulmer writes:
>
> > If we do it like that, aren't we whacking the last character of content?
>
> Hmm, assuming I'm not misreading, perhaps not? Since for a length of
> say 1 it'll be "setting this->postda
Rob,
If we do it like that, aren't we whacking the last character of content?
What do you think of this:
if (strlen(postdata) > 0) {
this->postdata = xmalloc(this->postlen + 1);
memset(this->postdata, '\0', this->postlen +1);
memcpy(this->postdata, postdata, this->postlen);
I was able to reproduce it. I'll fix it soon.
Jeff
> Package: siege
> Severity: normal
>
> When I run:
>
> siege --hlep
>
> I get:
>
> Segmentation fault.
>
> Yes, that was a typo, but I'm guessing a segfault isn't the best way to
> report that :)
>
> -- System Information:
> Debian Release: test
3 matches
Mail list logo