Attached patch fixes this problem. -- Regards, Sir Raorn.
diff --git a/powersave/daemon/pm_interface.cpp
b/powersave/daemon/pm_interface.cpp
index 957492f..cb7530b 100644
--- a/powersave/daemon/pm_interface.cpp
+++ b/powersave/daemon/pm_interface.cpp
@@ -597,7 +597,7 @@ int PM_Interface::x_notification(const string ¶m)
DBUS_ERROR PM_Interface::handleScriptsMessage(DBusMessage *msg, const string
&msg_member)
{
- char dummy[] = "";
+ char *dummy = "";
pDebug (DBG_DIAG, "Handling Scripts request");
if (msg_member == "ScriptReturn") {
@@ -609,15 +609,15 @@ DBUS_ERROR PM_Interface::handleScriptsMessage(DBusMessage
*msg, const string &ms
return REPLY_INVALID_PARAM;
}
// get the so called mode ( notify, progress, true, false )
- if (!liblazy_dbus_message_get_basic_arg(msg, DBUS_TYPE_INT32,
&request, 1) < 0) {
+ if (liblazy_dbus_message_get_basic_arg(msg, DBUS_TYPE_INT32,
&request, 1) < 0) {
pDebug(DBG_WARN, "Script returned but we could not to
get the request");
return REPLY_INVALID_PARAM;
}
// get the message
- if (!liblazy_dbus_message_get_basic_arg(msg, DBUS_TYPE_STRING,
&dummy, 0) < 0) {
+ if (liblazy_dbus_message_get_basic_arg(msg, DBUS_TYPE_STRING,
&dummy, 0) < 0) {
pDebug(DBG_INFO, "Script returned but we could not to
get the message."
" Continuing anyway...");
- strcpy(dummy, "");
+ dummy = "";
}
pDebug(DBG_DEBUG, "Script returned: event id: %d, request: %d,
message: '%s'",
signature.asc
Description: Digital signature

