From: Peter Howkins Date: Wed, 29 Aug 2012 17:02:22 +0000 (+0100) Subject: util/dttypes: Resolve -Wformat-security warnings X-Git-Tag: 2.2.0b~43 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b14d6d0b684caa19d179e4af8c483c1b20232d3a;p=oweals%2Fcde.git util/dttypes: Resolve -Wformat-security warnings --- diff --git a/cde/programs/util/dttypes/dttypes.c b/cde/programs/util/dttypes/dttypes.c index 001c4248..63ac35b8 100644 --- a/cde/programs/util/dttypes/dttypes.c +++ b/cde/programs/util/dttypes/dttypes.c @@ -328,7 +328,7 @@ rec_list(List *l) printf(catgets(dtcatd, 1, 13, " :\t%s"), fld_ptr->fieldValue?fv: catgets(dtcatd, 1, 14, "")); - printf(catgets(dtcatd, 1, 15, "\n")); + printf("%s", catgets(dtcatd, 1, 15, "\n")); } } @@ -344,7 +344,7 @@ rec_list(List *l) printf(catgets(dtcatd, 1, 13, " :\t%s"), fld_ptr->fieldValue?fv:catgets(dtcatd, 1, 14, "")); term++; } - if(term)printf(catgets(dtcatd, 1, 15, "\n")); + if(term)printf("%s", catgets(dtcatd, 1, 15, "\n")); } _DtDtsMMSafeFree(fn); _DtDtsMMSafeFree(fv); @@ -570,7 +570,7 @@ parse_args(List *l, int argc, char **argv) { if(error & 1<