summaryrefslogtreecommitdiff
path: root/commands.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands.c')
-rw-r--r--commands.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/commands.c b/commands.c
index 577bee6..fab8b18 100644
--- a/commands.c
+++ b/commands.c
@@ -200,9 +200,13 @@ static void commands_get(GSocketConnection *connection, const gchar *cmd, GError
}
}
+ gchar *localfile = g_uri_unescape_string(data[2], NULL);
+ gchar *remotefile = g_uri_unescape_string(data[4], NULL);
- server_get(server, data[1], data[2], data[4]);
+ server_get(server, data[1], localfile, remotefile);
+ g_free(localfile);
+ g_free(remotefile);
g_strfreev(data);
}