From 238683152911abedd26fa804799e43f365802b97 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Wed, 16 Nov 2022 09:50:59 +0000 Subject: [PATCH] notification - stop allocating wrong struct type for noti actions the structs size was bigger so it didnt cause any real problem other than allocating too much mem. this fixes that --- src/bin/e_notification.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_notification.c b/src/bin/e_notification.c index ec9b3cd87..b21c5afec 100644 --- a/src/bin/e_notification.c +++ b/src/bin/e_notification.c @@ -433,7 +433,8 @@ notify_cb(const Eldbus_Service_Interface *iface EINA_UNUSED, const Eldbus_Messag printf("NOT: act=[%s] [%s]\n", txt, txt2); num++; - actions = realloc(n->actions, (num + 1) * sizeof(E_Notification_Notify)); + actions = realloc(n->actions, (num + 1) * + sizeof(E_Notification_Notify_Action)); if (actions) { n->actions = actions;