diff options
-rw-r--r-- | commands.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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); } |