aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/plugin.c4
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 97c1854..e43678d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-01-25 Ross Burton <ross@openedhand.com>
+ * src/plugin.c:
+ Fix Run Remote by executing the entered command, not NULL.
+
+2008-01-25 Ross Burton <ross@openedhand.com>
+
* src/Makefile.am:
Don't version the plugin, and make the linker warn if any symbols
are undefined.
diff --git a/src/plugin.c b/src/plugin.c
index e420ddf..1338f70 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -989,7 +989,6 @@ action_remote_run_activate_cb (GtkAction *action,
GError *error = NULL;
gchar *cur_dir = NULL;
gchar *cmd = NULL;
- gchar *target_cmd = NULL;
gint res = 0;
terminal = anjuta_shell_get_interface (ANJUTA_PLUGIN (sp)->shell,
@@ -1009,14 +1008,13 @@ action_remote_run_activate_cb (GtkAction *action,
switch (res)
{
case GTK_RESPONSE_ACCEPT:
- cmd = g_strdup_printf (REMOTE_COMMAND, QEMU_IP_ADDRESS, target_cmd);
+ cmd = g_strdup_printf (REMOTE_COMMAND, QEMU_IP_ADDRESS, sp->remote_command);
ianjuta_terminal_execute_command (terminal, cur_dir, cmd, &error);
break;
default:
break;
}
- g_free (target_cmd);
g_free (cmd);
g_free (cur_dir);
}