[Xfce4-commits] <xfce4-cpugraph-plugin:master> g_strdup() the Command string, probably fixes bug #6968
Landry Breuil
noreply at xfce.org
Wed Apr 18 23:30:01 CEST 2012
Updating branch refs/heads/master
to a20a581ed444179af75389a5b44882c4c68ecb5b (commit)
from 24984dd188a184739cf580f8f781e0be0b34320f (commit)
commit a20a581ed444179af75389a5b44882c4c68ecb5b
Author: Landry Breuil <landry at rhaalovely.net>
Date: Wed Apr 18 23:01:40 2012 +0200
g_strdup() the Command string, probably fixes bug #6968
panel-plugin/settings.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/settings.c b/panel-plugin/settings.c
index c0f1fed..7331154 100644
--- a/panel-plugin/settings.c
+++ b/panel-plugin/settings.c
@@ -98,7 +98,7 @@ void read_settings( XfcePanelPlugin * plugin, CPUGraph * base )
mode = xfce_rc_read_int_entry( rc, "Mode", mode );
color_mode = xfce_rc_read_int_entry( rc, "ColorMode", color_mode );
frame = xfce_rc_read_int_entry( rc, "Frame", frame );
- associated_command = xfce_rc_read_entry( rc, "Command", associated_command );
+ associated_command = g_strdup(xfce_rc_read_entry( rc, "Command", associated_command ));
in_terminal = xfce_rc_read_int_entry( rc, "InTerminal", in_terminal );
startup_notification = xfce_rc_read_int_entry( rc, "StartupNotification", startup_notification );
border = xfce_rc_read_int_entry( rc, "Border", border );
More information about the Xfce4-commits
mailing list