Using notification API, it appears that allocating payload_size
when creating a packet could makes notification-service crash sometimes
when removing a notification.
Checking some packet sizes shows that allocates BUFSIZ is enough and
fix the problem.
Change-Id: I4b1d134fe43b235b586ba184053134299cc56cb0
Signed-off-by: Corentin Lecouvey <corentin.lecouvey@open.eurogiciel.org>
payload_size = sizeof(*packet->data) + BUFSIZ;
packet->refcnt = 0;
- packet->data = calloc(1, payload_size);
+ packet->data = calloc(1, BUFSIZ);
if (!packet->data) {
ErrPrint("Heap: %s\n", strerror(errno));
packet->state = INVALID;