From: Peter Howkins Date: Wed, 4 Jul 2018 00:10:45 +0000 (+0100) Subject: dtcm: Coverity 89063 X-Git-Tag: 2.3.0a~221 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=8d28d960d9e0d6c551bb010b883967b009d65b58;p=oweals%2Fcde.git dtcm: Coverity 89063 --- 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);