summaryrefslogtreecommitdiff
path: root/libmate-desktop/mate-desktop-item.c
diff options
context:
space:
mode:
Diffstat (limited to 'libmate-desktop/mate-desktop-item.c')
-rw-r--r--libmate-desktop/mate-desktop-item.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmate-desktop/mate-desktop-item.c b/libmate-desktop/mate-desktop-item.c
index 7b96385..f7b1154 100644
--- a/libmate-desktop/mate-desktop-item.c
+++ b/libmate-desktop/mate-desktop-item.c
@@ -2115,7 +2115,7 @@ mate_desktop_item_launch_on_screen_with_env (
/* make a new copy and get rid of spaces */
the_exec = g_alloca (strlen (exec) + 1);
- strcpy (the_exec, exec);
+ g_strlcpy (the_exec, exec, strlen (exec) + 1);
if ( ! strip_the_amp (the_exec)) {
g_set_error (error,