From: Peter Howkins Date: Wed, 4 Jul 2018 00:15:12 +0000 (+0100) Subject: dtcm: Coverity 89037 X-Git-Tag: 2.3.0a~219 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=eb9ef605cafaed28ff04206fe340f5d7c9169444;p=oweals%2Fcde.git dtcm: Coverity 89037 --- diff --git a/cde/programs/dtcm/dtcm/reminders.c b/cde/programs/dtcm/dtcm/reminders.c index 41cda012..6735c2b4 100644 --- a/cde/programs/dtcm/dtcm/reminders.c +++ b/cde/programs/dtcm/dtcm/reminders.c @@ -931,7 +931,7 @@ reminders_init( val->scope = convert_time_scope_str(get_char_prop(p, CP_MAILUNIT)); val->scope_val = convert_time_val(get_int_prop(p, CP_MAILADV), val->scope); - 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)); }