From 8d28d960d9e0d6c551bb010b883967b009d65b58 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:10:45 +0100 Subject: [PATCH] dtcm: Coverity 89063 --- cde/programs/dtcm/dtcm/props_pu.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cde/programs/dtcm/dtcm/props_pu.c b/cde/programs/dtcm/dtcm/props_pu.c index 55708a0d..b3b0f5cf 100644 --- a/cde/programs/dtcm/dtcm/props_pu.c +++ b/cde/programs/dtcm/dtcm/props_pu.c @@ -3093,7 +3093,10 @@ set_editor_vals_on_ui(Props_pu *pu, Props *p) { 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(pu->ep_reminders.mailto_val, get_char_prop(p, CP_MAILTO)); + snprintf(pu->ep_reminders.mailto_val, + sizeof(pu->ep_reminders.mailto_val), + "%s", + get_char_prop(p, CP_MAILTO)); set_reminders_vals(&pu->ep_reminders, False); -- 2.25.1