From eb9ef605cafaed28ff04206fe340f5d7c9169444 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 4 Jul 2018 01:15:12 +0100 Subject: [PATCH] dtcm: Coverity 89037 --- cde/programs/dtcm/dtcm/reminders.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } -- 2.25.1