dtcm: Coverity 89063
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:10:45 +0000 (01:10 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:10:45 +0000 (01:10 +0100)
cde/programs/dtcm/dtcm/props_pu.c

index 55708a0d637d33db2acf85ba131ee11fb71987e9..b3b0f5cff41befdc197a490685c804d278e30d6c 100644 (file)
@@ -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);