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 <antenore@simbiosi.org>2018-07-19 14:31:08 +0300
committerAntenore Gatta <antenore@simbiosi.org>2018-07-19 14:31:08 +0300
commita8345ce9fe7686b659899d88dc61ba9f1832cb19 (patch)
treefb6ed924cdc996914026a27e4e9542ceff5f1d7b /src/remmina_ssh_plugin.c
parent7004a51c01367ae508e3f18e7fdb3a73b7bcd0f5 (diff)
Using g_malloc instead of malloc
Diffstat (limited to 'src/remmina_ssh_plugin.c')
-rw-r--r--src/remmina_ssh_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/remmina_ssh_plugin.c b/src/remmina_ssh_plugin.c
index 04dcace17..d4c5a5cfe 100644
--- a/src/remmina_ssh_plugin.c
+++ b/src/remmina_ssh_plugin.c
@@ -1184,7 +1184,7 @@ remmina_ssh_plugin_load_terminal_palettes(gpointer *ssh_terminal_palette_new)
while ((filename = g_dir_read_name(user_data_dir))) {
if (!g_file_test(filename, G_FILE_TEST_IS_DIR)) {
if (g_str_has_suffix(filename, ".colors")) {
- char *menu_str = malloc(strlen(filename) + 1);
+ char *menu_str = g_malloc(strlen(filename) + 1);
strcpy(menu_str, filename);
char *t2 = strrchr(menu_str, '.');
t2[0] = 0;
@@ -1199,7 +1199,7 @@ remmina_ssh_plugin_load_terminal_palettes(gpointer *ssh_terminal_palette_new)
rec_size = g_list_length(files) * 2;
- gpointer *color_palette = malloc((preset_rec_size + rec_size) * sizeof(gpointer));
+ gpointer *color_palette = g_malloc((preset_rec_size + rec_size) * sizeof(gpointer));
unsigned int field_idx = 0;
*ssh_terminal_palette_new = color_palette;