dtcm: Resolve CID 87408
[oweals/cde.git] / cde / programs / dtcm / dtcm / editor.c
index e6c0dfbbfb0fda0186ac5e4212a28749abc032d8..ad29c047727e9f97b180eb24704d593012111467 100644 (file)
@@ -1,3 +1,25 @@
+/*
+ * CDE - Common Desktop Environment
+ *
+ * Copyright (c) 1993-2012, The Open Group. All rights reserved.
+ *
+ * These libraries and programs are free software; you can
+ * redistribute them and/or modify them under the terms of the GNU
+ * Lesser General Public License as published by the Free Software
+ * Foundation; either version 2 of the License, or (at your option)
+ * any later version.
+ *
+ * These libraries and programs are distributed in the hope that
+ * they will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with these librararies and programs; if not, write
+ * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
+ * Floor, Boston, MA 02110-1301 USA
+ */
 /* $TOG: editor.c /main/13 1999/07/01 11:44:34 mgreess $ */
 /*
  *  (c) Copyright 1993, 1994 Hewlett-Packard Company
@@ -1188,7 +1210,7 @@ build_editor_list(Editor *e, Tick date, Glance glance,
        }
 
        setup_range(&range_attr, &ops, &range_count, start, stop,
-                   CSA_TYPE_EVENT, NULL, B_FALSE, e->cal->general->version);
+                   CSA_TYPE_EVENT, 0, B_FALSE, e->cal->general->version);
 
        status = csa_list_entries(e->cal->cal_handle, range_count, range_attr, ops, count, entry_list, NULL);
        backend_err_msg(e->frame, e->cal->view->current_calendar, status,
@@ -1387,7 +1409,7 @@ trim_end_date_from_rule(char *rule, char *newrule)
        if (ptr = strchr(rule, 'Z')) {
                while (*ptr != ' ')
                        ptr--;
-               *ptr = NULL;
+               *ptr = '\0';
        }
        strcpy(newrule, rule);