diff options
author | Pablo Barciela <[email protected]> | 2019-02-23 13:35:40 +0100 |
---|---|---|
committer | Pablo Barciela <[email protected]> | 2019-03-05 01:18:47 +0100 |
commit | fede3677725c71920288dfa9a6acdd0230e6c68b (patch) | |
tree | a050fd99efe80ae0717421de03a831d150646841 /src/caja-sidebar-title.c | |
parent | 4ed829a1facce691869942de8f41878771189776 (diff) | |
download | caja-fede3677725c71920288dfa9a6acdd0230e6c68b.tar.bz2 caja-fede3677725c71920288dfa9a6acdd0230e6c68b.tar.xz |
[Security] Use 'g_strlcpy' instead of 'strcpy'
to avoid warnings with Clang Analyzer
Diffstat (limited to 'src/caja-sidebar-title.c')
-rw-r--r-- | src/caja-sidebar-title.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |