This is an automated email from the git hooks/post-receive script. timystery pushed a commit to branch master in repository panel-plugins/xfce4-sensors-plugin.
commit ae48fbb67702ab2547ee2a2c129c2e8baeacbbd0 Author: Fabian <[email protected]> Date: Fri Mar 3 12:09:42 2017 +0100 respect "new" output of hddtemp "SLP" for sleeping; otherwise memory will be overwritten at some places, leading to segfaults --- lib/hddtemp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/hddtemp.c b/lib/hddtemp.c index ff68875..3310495 100644 --- a/lib/hddtemp.c +++ b/lib/hddtemp.c @@ -609,7 +609,8 @@ get_hddtemp_value (char* str_disk, gboolean *ptr_suppressmessage) /* hddtemp does not return floating values, but only integer ones. So have an easier life with atoi. FIXME: Use strtod() instead?*/ - if (0 == strcmp(ptr_str_stdout, "drive is sleeping")) + if ( 0 == strcmp(ptr_str_stdout, "drive is sleeping") + || 0 == strcmp(ptr_str_stdout, "SLP") ) val_drive_temperature = HDDTEMP_DISK_SLEEPING; else val_drive_temperature = (double) (atoi ( (const char*) ptr_str_stdout) ); -- To stop receiving notification emails like this one, please contact the administrator of this repository. _______________________________________________ Xfce4-commits mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce4-commits
