dtcalc: Resolve "format not a string literal and no format arguments [-Wformat-securi...
authorPeter Howkins <flibble@users.sf.net>
Wed, 22 Aug 2012 10:28:36 +0000 (11:28 +0100)
committerPeter Howkins <flibble@users.sf.net>
Wed, 22 Aug 2012 10:28:36 +0000 (11:28 +0100)
commit20c107bce203e7c4d8fb0ed089c5ca368c43e89e
tree4f4b8a279a7bc27dad0d27491c13f704ad9fac56
parent7d5072168535968055260c7279b3f2404d4cd88e
dtcalc: Resolve "format not a string literal and no format arguments [-Wformat-security]" warnings.

Fix warnings related to secruity concerns on varargs functions. By specifying
"%s" on single string calls to sprintf() (and related) it's not possible to
have a % in the input string causing random data to be read off the stack.
cde/programs/dtcalc/calctool.c
cde/programs/dtcalc/motif.c