The last element in the array will now be NULL
1 files changed, 2 insertions(+), 1 deletions(-) M src/notify.c
M src/notify.c +2 -1
@@ 29,7 29,7 @@ #include <gio/gio.h> static bool running = false; -static char* notif_data[4]; +static char* notif_data[5]; static uint32_t id; static void (*callback)(const char* app_name, const char* summary, const char* body) = NULL; @@ 62,6 62,7 @@ static void dbus_method_call(GDBusConnec notif_data[1] = strdup(app_name); notif_data[2] = strdup(summary); notif_data[3] = strdup(body); + notif_data[4] = NULL; if(callback != NULL) { callback(app_name, summary, body); }