From: Peter Howkins Date: Wed, 29 Aug 2012 15:13:22 +0000 (+0100) Subject: dtterm: Resolve -Wformat-security warnings X-Git-Tag: 2.2.0b~44 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=ba88e3abe1cd220efe3caef7f1f6cda665af9840;p=oweals%2Fcde.git dtterm: Resolve -Wformat-security warnings --- diff --git a/cde/programs/dtterm/DtTermSyntax.c b/cde/programs/dtterm/DtTermSyntax.c index 5fed1a4e..4ac65824 100644 --- a/cde/programs/dtterm/DtTermSyntax.c +++ b/cde/programs/dtterm/DtTermSyntax.c @@ -269,7 +269,7 @@ void Syntax(char *programName, char *badOption) */ int len = fmtlen + strlen(optPtr->opt); if (col + len >= cols) { - (void) fprintf(stderr, (GETMESSAGE(NL_SETN_Syntax,49, "\r\n "))); + (void) fprintf(stderr, "%s", (GETMESSAGE(NL_SETN_Syntax,49, "\r\n "))); col = 3; } (void) fprintf(stderr, fmt, optPtr->opt); @@ -292,11 +292,11 @@ void Help(char *programName) */ GetUsage(); - (void) fprintf(stderr, (GETMESSAGE(NL_SETN_Syntax,52, "usage:\n"))); + (void) fprintf(stderr, "%s", (GETMESSAGE(NL_SETN_Syntax,52, "usage:\n"))); (void) fprintf(stderr, (GETMESSAGE(NL_SETN_Syntax,53, "\t%s [-options ...] [-e command args]\n\n")), programName); - (void) fprintf(stderr, (GETMESSAGE(NL_SETN_Syntax,54, + (void) fprintf(stderr, "%s", (GETMESSAGE(NL_SETN_Syntax,54, "where options include:\n"))); for (optPtr = optHead; optPtr; optPtr = optPtr->next) if (strlen(optPtr->opt) > (size_t) width) width = strlen(optPtr->opt);