From e94c4017e6b541650781a75e45089d59198d0c7e Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:13:43 +0100 Subject: [PATCH] dtcm: Coverity 88587 --- cde/programs/dtcm/dtcm/reminders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/reminders.c b/cde/programs/dtcm/dtcm/reminders.c index 8f8778a3..41cda012 100644 --- a/cde/programs/dtcm/dtcm/reminders.c +++ b/cde/programs/dtcm/dtcm/reminders.c @@ -860,7 +860,7 @@ set_reminders_defaults(Reminders *r) { val->selected = convert_boolean_str(get_char_prop(p, CP_MAILON)); val->scope = convert_time_scope_str(get_char_prop(p, CP_MAILUNIT)); val->scope_val = get_int_prop(p, CP_MAILADV); - strcpy(r->mailto_val, get_char_prop(p, CP_MAILTO)); + snprintf(r->mailto_val, sizeof(r->mailto_val), "%s", get_char_prop(p, CP_MAILTO)); set_reminders_vals(r, False); } -- 2.25.1