From ba88e3abe1cd220efe3caef7f1f6cda665af9840 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Wed, 29 Aug 2012 16:13:22 +0100 Subject: [PATCH] dtterm: Resolve -Wformat-security warnings --- cde/programs/dtterm/DtTermSyntax.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); -- 2.25.1