Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHiroyuki Tanaka <myheroyuki@outlook.com>2023-11-09 15:25:17 +0300
committerHiroyuki Tanaka <myheroyuki@outlook.com>2023-11-09 15:25:17 +0300
commit55b9c65e724bc29419ab301d73f9b9f604ff96f1 (patch)
tree1d18ed16729e035e36e72b3d56f6a83d23c20a17 /plugins
parent5242d210fd98f2d9a3d65321e030f54c55e26af7 (diff)
parent6c06f87665ca100c23e867df60aeefa244272229 (diff)
Merge branch 'file-chooser-native' into 'master'
GtkFileChooserNative support Closes #3009 See merge request Remmina/Remmina!2553
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_file.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/plugins/rdp/rdp_file.c b/plugins/rdp/rdp_file.c
index cfd8c3057..fc161e850 100644
--- a/plugins/rdp/rdp_file.c
+++ b/plugins/rdp/rdp_file.c
@@ -283,25 +283,15 @@ gboolean remmina_rdp_file_export(RemminaFilePlugin *plugin, RemminaFile *remmina
{
TRACE_CALL(__func__);
FILE *fp;
- gchar *p;
gboolean ret;
- p = strrchr(to_file, '.');
-
- if (p && (g_strcmp0(p + 1, "rdp") == 0 || g_strcmp0(p + 1, "RDP") == 0))
- p = g_strdup(to_file);
- else
- p = g_strdup_printf("%s.rdp", to_file);
-
- fp = g_fopen(p, "w+");
+ fp = g_fopen(to_file, "w+");
if (fp == NULL) {
- g_print("Failed to export %s\n", p);
- g_free(p);
+ g_print("Failed to export %s\n", to_file);
return FALSE;
}
- g_free(p);
ret = remmina_rdp_file_export_channel(remminafile, fp);
fclose(fp);