From 31c213193599eed660a9f62b7caff288c669eaf6 Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Mon, 27 Aug 2012 20:36:59 +0100 Subject: [PATCH] libDtTerm: Resolve all -Wformat-security warnings. --- cde/lib/DtTerm/Term/TermParse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cde/lib/DtTerm/Term/TermParse.c b/cde/lib/DtTerm/Term/TermParse.c index 554c6a24..b173f77f 100644 --- a/cde/lib/DtTerm/Term/TermParse.c +++ b/cde/lib/DtTerm/Term/TermParse.c @@ -2197,7 +2197,7 @@ _DtTermParseSunMisc /* Misc sun esc seqs */ s = XtMalloc(strlen(icon) + strlen(fmt) + 1); else s = buf; - sprintf(s,fmt); + sprintf(s, "%s", fmt); sendEscSequence(w,s) ; if (s != buf) XtFree(s); break ; @@ -2208,7 +2208,7 @@ _DtTermParseSunMisc /* Misc sun esc seqs */ s = XtMalloc(strlen(icon) + strlen(fmt) + 1); else s = buf; - sprintf(s,fmt); + sprintf(s, "%s", fmt); sendEscSequence(w,s) ; if (s != buf) XtFree(s); break ; -- 2.25.1