Fixed notification script call (wrong allocation of command string).
authorJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Aug 2014 21:23:46 +0000 (23:23 +0200)
committerJean-Philippe Orsini <jeanfi@gmail.com>
Mon, 4 Aug 2014 21:23:46 +0000 (23:23 +0200)
NEWS
NEWS.html
po/Makefile.in
src/notify_cmd.c

diff --git a/NEWS b/NEWS
index 6d93650..22cc6a9 100644 (file)
--- 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
 ------
index 780a0ea..2a935b6 100644 (file)
--- 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).\r
 </p>\r
 </li>\r
+<li>\r
+<p>\r
+Fixed notification script call (wrong allocation of command string).\r
+</p>\r
+</li>\r
 </ul></div>\r
 </div>\r
 </div>\r
@@ -2649,7 +2654,7 @@ Fixed BR1: crash when no temperature sensor is available
 <div id="footnotes"><hr /></div>\r
 <div id="footer">\r
 <div id="footer-text">\r
-Last updated 2014-08-04 09:42:17 CEST\r
+Last updated 2014-08-04 23:22:47 CEST\r
 </div>\r
 </div>\r
 </body>\r
index fdccfa6..d364d2f 100644 (file)
@@ -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
 
index dfc1be1..793903a 100644 (file)
@@ -38,6 +38,7 @@ void notify_cmd(struct psensor *s)
                             + 1
                             + strlen(s->id)
                             + 1
+                            + 1
                             + strlen(v)
                             + 1);