dtcm: Coverity 88587
authorPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:13:43 +0000 (01:13 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 4 Jul 2018 00:13:43 +0000 (01:13 +0100)
cde/programs/dtcm/dtcm/reminders.c

index 8f8778a3054e1e9c1216b7a3cf28cc8a608c0318..41cda0126d19bc2714694aab6157002f350e3aa5 100644 (file)
@@ -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);
 }