diff options
author | Antenore Gatta <antenore@simbiosi.org> | 2018-07-19 14:31:08 +0300 |
---|---|---|
committer | Antenore Gatta <antenore@simbiosi.org> | 2018-07-19 14:31:08 +0300 |
commit | a8345ce9fe7686b659899d88dc61ba9f1832cb19 (patch) | |
tree | fb6ed924cdc996914026a27e4e9542ceff5f1d7b | |
parent | 7004a51c01367ae508e3f18e7fdb3a73b7bcd0f5 (diff) |
Using g_malloc instead of malloc
-rw-r--r-- | src/remmina_ssh_plugin.c | 4 |
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; |