From ad07330e1a39bc4469aa9c085a34750f8c505266 Mon Sep 17 00:00:00 2001 From: Pablo Barciela Date: Sat, 23 Feb 2019 13:35:40 +0100 Subject: [Security] Use 'g_strlcpy' instead of 'strcpy' to avoid warnings with Clang Analyzer --- src/caja-sidebar-title.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/caja-sidebar-title.c b/src/caja-sidebar-title.c index af9cb932..48eb8538 100644 --- a/src/caja-sidebar-title.c +++ b/src/caja-sidebar-title.c @@ -433,7 +433,7 @@ override_title_font (GtkWidget *widget, g_strreverse (tempsize); gchar tempfont [strlen (font)]; - strcpy (tempfont, font); + g_strlcpy (tempfont, font, sizeof (tempfont)); tempfont [strlen (font) - strlen (tempsize)] = 0; css = g_strdup_printf ("label { font-family: %s; font-size: %spt; }", tempfont, tempsize); -- cgit v1.2.1