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:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-14 12:38:32 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-14 12:38:32 +0300
commit9e7d3a6a32d1ca94de862a7118649e80478079d9 (patch)
tree20c3f3818edbdda29a9090a063510b664a53e527 /plugins
parent08c95804d2b44378be01edc354487e3892d1fad3 (diff)
Fixing some gcc warnings
Diffstat (limited to 'plugins')
-rw-r--r--plugins/rdp/rdp_event.c4
-rw-r--r--plugins/rdp/rdp_monitor.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/rdp/rdp_event.c b/plugins/rdp/rdp_event.c
index 251f9ae0d..edbf335f7 100644
--- a/plugins/rdp/rdp_event.c
+++ b/plugins/rdp/rdp_event.c
@@ -145,7 +145,11 @@ void remmina_rdp_event_event_push(RemminaProtocolWidget *gp, const RemminaPlugin
return;
if (rfi->event_queue) {
+#if GLIB_CHECK_VERSION(2,67,3)
+ event = g_memdup2(e, sizeof(RemminaPluginRdpEvent));
+#else
event = g_memdup(e, sizeof(RemminaPluginRdpEvent));
+#endif
g_async_queue_push(rfi->event_queue, event);
if (write(rfi->event_pipe[1], "\0", 1)) {
diff --git a/plugins/rdp/rdp_monitor.c b/plugins/rdp/rdp_monitor.c
index 86df49a60..a4ee6f496 100644
--- a/plugins/rdp/rdp_monitor.c
+++ b/plugins/rdp/rdp_monitor.c
@@ -114,7 +114,7 @@ void remmina_rdp_monitor_get (rfContext *rfi, gchar **monitorids, guint32 *maxwi
if (has_custom_monitors) {
REMMINA_PLUGIN_DEBUG("We have custom monitors");
gchar itoc[10];
- sprintf(itoc, "%d", i);;
+ snprintf(itoc, sizeof(itoc), "%d", i);
if (remmina_rdp_utils_strpos(*monitorids, itoc) < 0 ) {
REMMINA_PLUGIN_DEBUG("Monitor n %d it's out of the provided list", i);
index += 1;