From 609f0751683c4811a5886d55edff72698791ee18 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 4 Aug 2014 23:18:59 +0200 Subject: [PATCH] Fixed notification script call (wrong allocation of command string). --- NEWS | 1 + NEWS.html | 7 ++++++- src/notify_cmd.c | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index a92d0d4..d34db28 100644 --- a/NEWS +++ b/NEWS @@ -12,6 +12,7 @@ v1.1.1 * Added menu separator for the application indicator menu between sensor items and preferences. * Fixed check of sensors/error.h. +* Fixed notification script call (wrong allocation of command string). v1.0.3 ------ diff --git a/NEWS.html b/NEWS.html index 6f5744c..15fc541 100644 --- a/NEWS.html +++ b/NEWS.html @@ -412,6 +412,11 @@ Added menu separator for the application indicator menu between Fixed check of sensors/error.h.

+
  • +

    +Fixed notification script call (wrong allocation of command string). +

    +
  • @@ -2684,7 +2689,7 @@ Fixed BR1: crash when no temperature sensor is available

    diff --git a/src/notify_cmd.c b/src/notify_cmd.c index dfc1be1..793903a 100644 --- a/src/notify_cmd.c +++ b/src/notify_cmd.c @@ -38,6 +38,7 @@ void notify_cmd(struct psensor *s) + 1 + strlen(s->id) + 1 + + 1 + strlen(v) + 1); -- 2.7.4