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

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