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