From: Jon Trulson Date: Mon, 24 Mar 2014 23:48:01 +0000 (-0600) Subject: dtcm/reminders.c: NULL is not 0 X-Git-Tag: 2.2.2~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=0a74d63db40eb09bb63a828bc1e533be594ca922;p=oweals%2Fcde.git dtcm/reminders.c: NULL is not 0 --- diff --git a/cde/programs/dtcm/dtcm/reminders.c b/cde/programs/dtcm/dtcm/reminders.c index 7b60a647..9bf25848 100644 --- a/cde/programs/dtcm/dtcm/reminders.c +++ b/cde/programs/dtcm/dtcm/reminders.c @@ -97,7 +97,7 @@ r_validate_advance(char *advance_string) { ((*(end_ptr - 1) == ' ') || (*(end_ptr - 1) == '\t'))) end_ptr--; - *end_ptr = NULL; + *end_ptr = 0; if (blank_buf(c_p)) { @@ -823,7 +823,7 @@ reminders_attrs_to_form(Reminders *r, Dtcm_appointment *appt) { if (appt->mail && appt->mail->value) { r->mail_val.selected = True; _csa_iso8601_to_duration(appt->mail->value->item.reminder_value->lead_time, &r->mail_val.scope_val); - memset(r->mailto_val, NULL, MAILTO_LEN); + memset(r->mailto_val, 0, MAILTO_LEN); strncpy(r->mailto_val, (char *) appt->mail->value->item.reminder_value->reminder_data.data, appt->mail->value->item.reminder_value->reminder_data.size); } else { r->mail_val.selected = False;