Files
ports/sysutils/xfce4-settings/files/patch-dialogs_appearance-settings_main.c
T
Guido Falsi f847247fe0 - Fix script used to extract themes to fallback to /tmp when both
TMPDIR and XDG_CACHE_HOME environment variables are not defined [1]
- Fix crash caused by null terminated list missing the terminating
  null element due to no allocating enough elements [2]

Reported by:		Andrea Venturoli <ml@netfence.it> [1] [2]
Patch submitted by:	Andrea Venturoli <ml@netfence.it> [2]
MFH:			2021Q1
2021-01-10 15:33:03 +00:00

12 lines
513 B
C

--- dialogs/appearance-settings/main.c.orig 2020-12-16 10:44:46 UTC
+++ dialogs/appearance-settings/main.c
@@ -994,7 +994,7 @@ appearance_settings_install_theme_cb (GtkButton *widge
gchar **uris;
GtkFileChooser *chooser = GTK_FILE_CHOOSER (dialog);
- uris = g_new0 (gchar *, 1);
+ uris = g_new0 (gchar *, 2);
filename = gtk_file_chooser_get_filename (chooser);
uris[0] = g_filename_to_uri (filename, NULL, NULL);
install_theme (window, uris, builder);