On Thu, 2014-06-26 at 12:59 +0200, Zbigniew Jędrzejewski-Szmek wrote:
> > + if (!GREEDY_REALLOC(client->req_opts, client->req_opts_allocated,
> > + (client->req_opts_len + 1) * sizeof(option)))
> > + return -ENOMEM;
> GREEDY_REALLOC takes the number of *items*, so this will overallocated if I'm
> not mistaken (since commit ca2d3784147).
Fixed not to multiply with sizeof.
Patrik
_______________________________________________
systemd-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/systemd-devel