From 6e49be91f854a8ded96fcff5b07f63cc3f1cdd1a Mon Sep 17 00:00:00 2001 From: Jean-Philippe Orsini Date: Mon, 4 Aug 2014 23:23:46 +0200 Subject: [PATCH] Fixed notification script call (wrong allocation of command string). --- NEWS | 1 + NEWS.html | 7 ++++++- po/Makefile.in | 8 ++++---- src/notify_cmd.c | 1 + 4 files changed, 12 insertions(+), 5 deletions(-) diff --git a/NEWS b/NEWS index 6d93650..22cc6a9 100644 --- a/NEWS +++ b/NEWS @@ -10,6 +10,7 @@ v1.0.3 * Fixed psensor does not start: Attempt to unlock mutex that was not locked during startup with glib 2.41.2. (LP: #1346299). * Fixed FTBFS with clang instead of gcc. (Closes: #753061). +* Fixed notification script call (wrong allocation of command string). v1.0.2 ------ diff --git a/NEWS.html b/NEWS.html index 780a0ea..2a935b6 100644 --- a/NEWS.html +++ b/NEWS.html @@ -406,6 +406,11 @@ Fixed psensor does not start: Attempt to unlock mutex that was not Fixed FTBFS with clang instead of gcc. (Closes: #753061).

+
  • +

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

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

    diff --git a/po/Makefile.in b/po/Makefile.in index fdccfa6..d364d2f 100644 --- a/po/Makefile.in +++ b/po/Makefile.in @@ -21,7 +21,7 @@ srcdir = . top_srcdir = .. -prefix = /usr/local +prefix = /tmp exec_prefix = ${prefix} datarootdir = ${prefix}/share datadir = ${datarootdir} @@ -34,12 +34,12 @@ INSTALL_DATA = ${INSTALL} -m 644 # We use $(mkdir_p). # In automake <= 1.9.x, $(mkdir_p) is defined either as "mkdir -p --" or as # "$(mkinstalldirs)" or as "$(install_sh) -d". For these automake versions, -# ${SHELL} /home/jporsini/work/psensor/install-sh does not start with $(SHELL), so we add it. +# ${SHELL} /home/jporsini/work.local/psensor/install-sh does not start with $(SHELL), so we add it. # In automake >= 1.10, /bin/mkdir -p is derived from ${MKDIR_P}, which is defined # either as "/path/to/mkdir -p" or ".../install-sh -c -d". For these automake # versions, $(mkinstalldirs) and $(install_sh) are unused. -mkinstalldirs = $(SHELL) ${SHELL} /home/jporsini/work/psensor/install-sh -d -install_sh = $(SHELL) ${SHELL} /home/jporsini/work/psensor/install-sh +mkinstalldirs = $(SHELL) ${SHELL} /home/jporsini/work.local/psensor/install-sh -d +install_sh = $(SHELL) ${SHELL} /home/jporsini/work.local/psensor/install-sh MKDIR_P = /bin/mkdir -p mkdir_p = /bin/mkdir -p 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