dtcm: Resolve CID 87562
[oweals/cde.git] / cde / programs / dtcm / dtcm / cm_delete.c
index 21e3e1d627a92ec5449109621af034361eaac2de..e354115a14f3f809a5fb034a72598a8177fd621c 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
+ */
 /*******************************************************************************
 **
 **  cm_delete.c
@@ -96,7 +118,7 @@ cm_args(int argc, char **argv)
                        argv = grab(++argv,cm_view,'-');
                        break;
                default:
-                       fprintf(stderr,catgets(DT_catd, 1, 187, "Usage:\n\tdtcm_delete [-c calendar] [-d <mm/dd/yy>] [-v view]\n"));
+                       fprintf(stderr, "%s", catgets(DT_catd, 1, 187, "Usage:\n\tdtcm_delete [-c calendar] [-d <mm/dd/yy>] [-v view]\n"));
                        exit(1);
                }
        }
@@ -164,7 +186,7 @@ int main(int argc, char **argv)
                        free(loc);
                        exit(0);
                }
-               fprintf(stdout, catgets(DT_catd, 1, 190,
+               fprintf(stdout, "%s", catgets(DT_catd, 1, 190,
                                       "Item to delete (number)? "));
                fgets(index, 9, stdin);
                fprintf(stdout,"\n\n");