Blame SOURCES/motif-2.3.4-Fix-issues-with-Werror-format-security.patch

191407
From 4783fb4cec8624311bb87b2eb4a2ac94a5c7d849 Mon Sep 17 00:00:00 2001
191407
From: =?UTF-8?q?Petr=20=C5=A0abata?= <contyk@redhat.com>
191407
Date: Thu, 8 Jun 2017 12:12:04 +0200
191407
Subject: [PATCH] Fix issues with -Werror=format-security
191407
MIME-Version: 1.0
191407
Content-Type: text/plain; charset=UTF-8
191407
Content-Transfer-Encoding: 8bit
191407
191407
Signed-off-by: Petr Ĺ abata <contyk@redhat.com>
191407
---
191407
 lib/Mrm/Mrmhier.c       |   4 +-
191407
 lib/Mrm/Mrmicon.c       |   4 +-
191407
 lib/Mrm/Mrmlread.c      |   2 +-
191407
 lib/Mrm/Mrmwcrw.c       |   4 +-
191407
 tools/wml/wmldbcreate.c |   2 +-
191407
 tools/wml/wmlouth.c     | 128 ++++++++++++++++++++++++------------------------
191407
 tools/wml/wmloutkey.c   |  10 ++--
191407
 tools/wml/wmloutmm.c    |  16 +++---
191407
 tools/wml/wmlresolve.c  |  26 +++++-----
191407
 9 files changed, 98 insertions(+), 98 deletions(-)
191407
191407
diff --git a/lib/Mrm/Mrmhier.c b/lib/Mrm/Mrmhier.c
191407
index 2712742..2a8703c 100644
191407
--- a/lib/Mrm/Mrmhier.c
191407
+++ b/lib/Mrm/Mrmhier.c
191407
@@ -264,10 +264,10 @@ Urm__OpenHierarchy (MrmCount			num_files,
191407
 	    case MrmSUCCESS:
191407
 	      break;
191407
 	    case MrmNOT_VALID:
191407
-	      sprintf (err_stg, _MrmMMsg_0113);
191407
+	      sprintf (err_stg, "%s", _MrmMMsg_0113);
191407
 	      break;
191407
 	    default:
191407
-	      sprintf (err_stg, _MrmMMsg_0114);
191407
+	      sprintf (err_stg, "%s", _MrmMMsg_0114);
191407
 	      break;
191407
 	    }
191407
 	}
191407
diff --git a/lib/Mrm/Mrmicon.c b/lib/Mrm/Mrmicon.c
191407
index 95d4086..191e2d2 100644
191407
--- a/lib/Mrm/Mrmicon.c
191407
+++ b/lib/Mrm/Mrmicon.c
191407
@@ -1176,7 +1176,7 @@ Urm__RealizeColorTable (Screen			*screen,
191407
 		}
191407
 		break;
191407
 	      default:
191407
-		sprintf(err_msg, _MrmMMsg_0040);
191407
+		sprintf(err_msg, "%s", _MrmMMsg_0040);
191407
 		return Urm__UT_Error ("Urm__RelizeColorTable",
191407
 				      err_msg, NULL, NULL, MrmFAILURE) ;
191407
 	      }
191407
@@ -1252,7 +1252,7 @@ Urm__RealizeColorTable (Screen			*screen,
191407
 	      break;
191407
 	    default:
191407
 	      result = MrmFAILURE;
191407
-	      sprintf (err_msg, _MrmMMsg_0040);
191407
+	      sprintf (err_msg, "%s", _MrmMMsg_0040);
191407
 	      Urm__UT_Error ("Urm__RelizeColorTable",
191407
 			     err_msg, NULL, NULL, MrmFAILURE) ;
191407
 	    }
191407
diff --git a/lib/Mrm/Mrmlread.c b/lib/Mrm/Mrmlread.c
191407
index c2fd94c..be433a3 100644
191407
--- a/lib/Mrm/Mrmlread.c
191407
+++ b/lib/Mrm/Mrmlread.c
191407
@@ -698,7 +698,7 @@ MrmFetchColorLiteral (MrmHierarchy                hierarchy_id,
191407
 	 XBlackPixelOfScreen(XDefaultScreenOfDisplay(display)));
191407
       break;
191407
     default:
191407
-      sprintf(err_msg, _MrmMMsg_0040);
191407
+      sprintf(err_msg, "%s", _MrmMMsg_0040);
191407
       result = Urm__UT_Error ("MrmFetchColorLiteral",
191407
 			      err_msg, NULL, NULL, MrmFAILURE) ;
191407
       _MrmAppUnlock(app);
191407
diff --git a/lib/Mrm/Mrmwcrw.c b/lib/Mrm/Mrmwcrw.c
191407
index fe3db52..3c5857f 100644
191407
--- a/lib/Mrm/Mrmwcrw.c
191407
+++ b/lib/Mrm/Mrmwcrw.c
191407
@@ -1390,7 +1390,7 @@ Urm__CW_CreateArglist (Widget			parent,
191407
 			}
191407
 		      break;
191407
 		    default:
191407
-		      sprintf (err_msg, _MrmMMsg_0040);
191407
+		      sprintf (err_msg, "%s", _MrmMMsg_0040);
191407
 		      result = Urm__UT_Error ("Urm__CW_ConvertValue",
191407
 					      err_msg, NULL, NULL, MrmFAILURE) ;
191407
 		    };
191407
@@ -2426,7 +2426,7 @@ Urm__CW_ConvertValue (Widget			parent,
191407
 	    }
191407
 	  break;
191407
 	default:
191407
-	  sprintf(err_msg, _MrmMMsg_0040);
191407
+	  sprintf(err_msg, "%s", _MrmMMsg_0040);
191407
 	  return Urm__UT_Error ("Urm__CW_ConvertValue",
191407
 				err_msg, NULL, NULL, MrmFAILURE) ;
191407
 	};
191407
diff --git a/tools/wml/wmldbcreate.c b/tools/wml/wmldbcreate.c
191407
index 07c0a3c..6de585a 100644
191407
--- a/tools/wml/wmldbcreate.c
191407
+++ b/tools/wml/wmldbcreate.c
191407
@@ -425,7 +425,7 @@ int	table_id;
191407
 		{
191407
 		fprintf (afile, "%d, ", entry_vec[j]);
191407
 		}
191407
-	    fprintf (afile, "\n");
191407
+	    fprintf (afile, "%s", "\n");
191407
 	    }
191407
         }
191407
 }
191407
diff --git a/tools/wml/wmlouth.c b/tools/wml/wmlouth.c
191407
index d2330e3..a52843f 100644
191407
--- a/tools/wml/wmlouth.c
191407
+++ b/tools/wml/wmlouth.c
191407
@@ -225,12 +225,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymGen.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Write the sym_k..._object literals
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
     {
191407
     clsobj = (WmlClassDefPtr) wml_obj_class_ptr->hvec[ndx].objptr;
191407
@@ -244,7 +244,7 @@ for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Define the sym_k_..._reason literals
191407
  */
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 for ( ndx=0 ; ndx<wml_obj_reason_ptr->cnt ; ndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_reason_ptr->hvec[ndx].objptr;
191407
@@ -258,7 +258,7 @@ for ( ndx=0 ; ndx<wml_obj_reason_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Define the sym_k_..._arg literals
191407
  */
191407
-fprintf (outfil, canned4);
191407
+fprintf (outfil, "%s", canned4);
191407
 for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_arg_ptr->hvec[ndx].objptr;
191407
@@ -272,7 +272,7 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Define the sym_k_..._enumset structs and literals
191407
  */
191407
-fprintf (outfil, canned5);
191407
+fprintf (outfil, "%s", canned5);
191407
 for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
     {
191407
     enumsetobj = (WmlEnumSetDefPtr) wml_obj_enumset_ptr->hvec[ndx].objptr;
191407
@@ -286,7 +286,7 @@ for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Define the sym_k_..._enumval literals
191407
  */
191407
-fprintf (outfil, canned6);
191407
+fprintf (outfil, "%s", canned6);
191407
 for ( ndx=0 ; ndx<wml_obj_enumval_ptr->cnt ; ndx++ )
191407
     {
191407
     enumvalobj = (WmlEnumValueDefPtr) wml_obj_enumval_ptr->hvec[ndx].objptr;
191407
@@ -301,7 +301,7 @@ for ( ndx=0 ; ndx<wml_obj_enumval_ptr->cnt ; ndx++ )
191407
  * Define the sym_k_..._charsize literals
191407
  * Define the sym_k_..._charset literals
191407
  */
191407
-fprintf (outfil, canned7);
191407
+fprintf (outfil, "%s", canned7);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     charsetobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
@@ -315,7 +315,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Define the sym_k_..._child literals
191407
  */
191407
-fprintf (outfil, canned8);
191407
+fprintf (outfil, "%s", canned8);
191407
 for ( ndx=0 ; ndx<wml_obj_child_ptr->cnt ; ndx++ )
191407
     {
191407
     childobj = (WmlChildDefPtr) wml_obj_child_ptr->hvec[ndx].objptr;
191407
@@ -379,12 +379,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymChCL.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Create table entries, similar to writing sym_k...
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_child_ptr->cnt ; ndx++ )
191407
     {
191407
     childobj = (WmlChildDefPtr) wml_obj_child_ptr->hvec[ndx].objptr;
191407
@@ -392,7 +392,7 @@ for ( ndx=0 ; ndx<wml_obj_child_ptr->cnt ; ndx++ )
191407
     fprintf (outfil, "    sym_k_%s_object,\n",
191407
 	     classobj->tkname);
191407
     }
191407
-fprintf (outfil, canned1a);
191407
+fprintf (outfil, "%s", canned1a);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -446,12 +446,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymArTy.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Create table entries, similar to writing sym_k...
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_arg_ptr->hvec[ndx].objptr;
191407
@@ -459,7 +459,7 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     fprintf (outfil, "    sym_k_%s_value,\n",
191407
 	     datobj->tkname);
191407
     }
191407
-fprintf (outfil, canned1a);
191407
+fprintf (outfil, "%s", canned1a);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -509,19 +509,19 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymRArg.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Create table entries, similar to writing sym_k...
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_arg_ptr->hvec[ndx].objptr;
191407
     fprintf (outfil, "    %d,\n",
191407
 	     resobj->related_code);
191407
     }
191407
-fprintf (outfil, canned1a);
191407
+fprintf (outfil, "%s", canned1a);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -621,12 +621,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilUrmClas.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Write entries for widgets
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
     {
191407
     clsobj = (WmlClassDefPtr) wml_obj_class_ptr->hvec[ndx].objptr;
191407
@@ -637,7 +637,7 @@ for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
     else 
191407
 	fprintf (outfil, "  \"%s\",\t\n", synobj->convfunc);
191407
     }
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 
191407
 /*
191407
  * Write entries for gadget variants of widget classes
191407
@@ -661,7 +661,7 @@ for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
 		     synobj->name);
191407
 	}
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * Write entries for non-dialog widgets
191407
@@ -685,7 +685,7 @@ for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
 		     synobj->name);
191407
 	}
191407
     }
191407
-fprintf (outfil, canned4);
191407
+fprintf (outfil, "%s", canned4);
191407
 
191407
 /*
191407
  * Write entries for the resource a widget's controls map to
191407
@@ -701,7 +701,7 @@ for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
     else
191407
 	fprintf (outfil, "  sym_k_%s_arg,\n", mapresobj->tkname);
191407
     }
191407
-fprintf (outfil, canned5);
191407
+fprintf (outfil, "%s", canned5);
191407
 
191407
 /*
191407
  * Write entries for arguments
191407
@@ -714,7 +714,7 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     fprintf (outfil, "  %s,\n",
191407
 	     synres->resliteral);
191407
     }
191407
-fprintf (outfil, canned6);
191407
+fprintf (outfil, "%s", canned6);
191407
 
191407
 /*
191407
  * Write entries for reasons
191407
@@ -727,7 +727,7 @@ for ( ndx=0 ; ndx<wml_obj_reason_ptr->cnt ; ndx++ )
191407
     fprintf (outfil, "  %s,\n",
191407
 	     synres->resliteral);
191407
     }
191407
-fprintf (outfil, canned7);
191407
+fprintf (outfil, "%s", canned7);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -781,13 +781,13 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilConst.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Process the arguments in code order. We start with 1, and write out
191407
  * the mask after processing 8 codes.
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 strcpy (maskbuf, "0");
191407
 for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     {
191407
@@ -805,7 +805,7 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     }
191407
 if ( bitno != 8 )
191407
     fprintf (outfil, "%s", maskbuf);
191407
-fprintf (outfil, canned1a);
191407
+fprintf (outfil, "%s", canned1a);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -878,8 +878,8 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymReas.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned_warn);
191407
+fprintf (outfil, "%s", canned1);
191407
 
191407
 /*
191407
  * Generate the bit vectors for each class. Outer loop on the reason code,
191407
@@ -919,19 +919,19 @@ for ( resndx=0 ; resndx<wml_obj_reason_ptr->cnt ; resndx++ )
191407
     if ( itemno != 0 )
191407
 	fprintf (outfil, "%s 0};\n", maskbuf);
191407
     else
191407
-	fprintf (outfil, "};\n");
191407
+	fprintf (outfil, "%s", "};\n");
191407
     }
191407
 
191407
 /*
191407
  * Write the vector of vectors.
191407
  */
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 for ( resndx=0 ; resndx<wml_obj_reason_ptr->cnt ; resndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_reason_ptr->hvec[resndx].objptr;
191407
     fprintf (outfil, "  reason_class_vec%d,\n", resobj->sym_code);
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1004,8 +1004,8 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymArTa.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned_warn);
191407
+fprintf (outfil, "%s", canned1);
191407
 
191407
 /*
191407
  * Generate the bit vectors for each class. Outer loop on the argument code,
191407
@@ -1045,19 +1045,19 @@ for ( resndx=0 ; resndx<wml_obj_arg_ptr->cnt ; resndx++ )
191407
     if ( itemno != 0 )
191407
 	fprintf (outfil, "%s 0};\n", maskbuf);
191407
     else
191407
-	fprintf (outfil, "};\n");
191407
+	fprintf (outfil, "%s", "};\n");
191407
     }
191407
 
191407
 /*
191407
  * Write the vector of vectors.
191407
  */
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 for ( resndx=0 ; resndx<wml_obj_arg_ptr->cnt ; resndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_arg_ptr->hvec[resndx].objptr;
191407
     fprintf (outfil, "  arg_class_vec%d,\n", resobj->sym_code);
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1129,8 +1129,8 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymChTa.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned_warn);
191407
+fprintf (outfil, "%s", canned1);
191407
 
191407
 /*
191407
  * Generate the bit vectors for each class. Outer loop on the child code,
191407
@@ -1168,19 +1168,19 @@ for ( childndx=0 ; childndx<wml_obj_child_ptr->cnt ; childndx++ )
191407
     if ( itemno != 0 )
191407
 	fprintf (outfil, "%s 0};\n", maskbuf);
191407
     else
191407
-	fprintf (outfil, "};\n");
191407
+	fprintf (outfil, "%s", "};\n");
191407
     }
191407
 
191407
 /*
191407
  * Write the vector of vectors.
191407
  */
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 for ( childndx=0 ; childndx<wml_obj_child_ptr->cnt ; childndx++ )
191407
     {
191407
     childobj = (WmlChildDefPtr) wml_obj_child_ptr->hvec[childndx].objptr;
191407
     fprintf (outfil, "  child_class_vec%d,\n", childobj->sym_code);
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1251,8 +1251,8 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymCtl.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned_warn);
191407
+fprintf (outfil, "%s", canned1);
191407
 
191407
 /*
191407
  * Generate the bit vectors for each class. Outer loop on the class code,
191407
@@ -1290,19 +1290,19 @@ for ( ctlndx=0 ; ctlndx<wml_obj_class_ptr->cnt ; ctlndx++ )
191407
     if ( itemno != 0 )
191407
 	fprintf (outfil, "%s 0};\n", maskbuf);
191407
     else
191407
-	fprintf (outfil, "};\n");
191407
+	fprintf (outfil, "%s", "};\n");
191407
     }
191407
 
191407
 /*
191407
  * Write the vector of vectors.
191407
  */
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 for ( ctlndx=0 ; ctlndx<wml_obj_class_ptr->cnt ; ctlndx++ )
191407
     {
191407
     clsobj = (WmlClassDefPtr) wml_obj_class_ptr->hvec[ctlndx].objptr;
191407
     fprintf (outfil, "  object_class_vec%d,\n", clsobj->sym_code);
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1438,7 +1438,7 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymNam.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Write entries for widgets
191407
@@ -1517,7 +1517,7 @@ for ( ndx=0 ; ndx<wml_obj_child_ptr->cnt ; ndx++ )
191407
     fprintf (outfil, "    \"%s\",\n",
191407
 	     synch->name);
191407
     }
191407
-fprintf (outfil, canned7);
191407
+fprintf (outfil, "%s", canned7);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1621,12 +1621,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymEnum.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Generate the enumeration value vectors for each enumeration set.
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
     {
191407
     enumsetobj = (WmlEnumSetDefPtr) wml_obj_enumset_ptr->hvec[ndx].objptr;
191407
@@ -1637,13 +1637,13 @@ for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
 	fprintf (outfil, "    %d,\n",
191407
 		 evobj->sym_code);
191407
 	}
191407
-    fprintf (outfil, "  };\n");
191407
+    fprintf (outfil, "%s", "  };\n");
191407
     }
191407
 
191407
 /*
191407
  * Generate the enumeration set tables
191407
  */
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
     {
191407
     enumsetobj = (WmlEnumSetDefPtr) wml_obj_enumset_ptr->hvec[ndx].objptr;
191407
@@ -1655,7 +1655,7 @@ for ( ndx=0 ; ndx<wml_obj_enumset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Create enumset table entries for arguments, similar to writing sym_k...
191407
  */
191407
-fprintf (outfil, canned4);
191407
+fprintf (outfil, "%s", canned4);
191407
 for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     {
191407
     resobj = (WmlResourceDefPtr) wml_obj_arg_ptr->hvec[ndx].objptr;
191407
@@ -1669,13 +1669,13 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Create the enumval values table.
191407
  */
191407
-fprintf (outfil, canned5);
191407
+fprintf (outfil, "%s", canned5);
191407
 for ( ndx=0 ; ndx<wml_obj_enumval_ptr->cnt ; ndx++ )
191407
     {
191407
     evobj = (WmlEnumValueDefPtr) wml_obj_enumval_ptr->hvec[ndx].objptr;
191407
     fprintf (outfil, "  %s,\n", evobj->syndef->enumlit);
191407
     }
191407
-fprintf (outfil, canned5a);
191407
+fprintf (outfil, "%s", canned5a);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -1813,12 +1813,12 @@ if ( outfil == (FILE *) NULL )
191407
     printf ("\nCouldn't open UilSymCSet.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Generate the standards name table
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     csobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
@@ -1836,7 +1836,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Generate the writing direction table
191407
  */
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     csobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
@@ -1858,7 +1858,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Generate the parsing direction table
191407
  */
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     csobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
@@ -1880,7 +1880,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Generate the character size table
191407
  */
191407
-fprintf (outfil, canned4);
191407
+fprintf (outfil, "%s", canned4);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     csobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
@@ -1906,7 +1906,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Generate the $LANG name recognition table
191407
  */
191407
-fprintf (outfil, canned5);
191407
+fprintf (outfil, "%s", canned5);
191407
 lang_max = 0;
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
@@ -1936,7 +1936,7 @@ for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
 /*
191407
  * Generate the $LANG code lookup table, in upper case
191407
  */
191407
-fprintf (outfil, canned6);
191407
+fprintf (outfil, "%s", canned6);
191407
 for ( ndx=0 ; ndx<wml_obj_charset_ptr->cnt ; ndx++ )
191407
     {
191407
     csobj = (WmlCharSetDefPtr) wml_obj_charset_ptr->hvec[ndx].objptr;
191407
diff --git a/tools/wml/wmloutkey.c b/tools/wml/wmloutkey.c
191407
index af42f22..4c14728 100644
191407
--- a/tools/wml/wmloutkey.c
191407
+++ b/tools/wml/wmloutkey.c
191407
@@ -574,16 +574,16 @@ if ( outfil == NULL )
191407
     printf ("\nCouldn't open UilKeyTab.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
+fprintf (outfil, "%s", canned_warn);
191407
 
191407
 /*
191407
  * Print the case sensitive and insensitive tables
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 wmlOutputUilKeyTabBody (outfil, wml_tok_sens_ptr, &maxlen, &maxkey);
191407
 fprintf (outfil, canned2, maxlen, maxkey);
191407
 wmlOutputUilKeyTabBody (outfil, wml_tok_insens_ptr, &maxlen, &maxkey);
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * close the output file
191407
@@ -812,8 +812,8 @@ if ( outfil == NULL )
191407
     printf ("\nCouldn't open UilTokName.h");
191407
     return;
191407
     }
191407
-fprintf (outfil, canned_warn);
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned_warn);
191407
+fprintf (outfil, "%s", canned1);
191407
 
191407
 /*
191407
  * Print the token name entries
191407
diff --git a/tools/wml/wmloutmm.c b/tools/wml/wmloutmm.c
191407
index 84a97bb..dc8ec09 100644
191407
--- a/tools/wml/wmloutmm.c
191407
+++ b/tools/wml/wmloutmm.c
191407
@@ -209,9 +209,9 @@ int			ctlndx;		/* to access ordered vector */
191407
 /*
191407
  * Write out header information
191407
  */
191407
-fprintf (outfil, canned1);
191407
+fprintf (outfil, "%s", canned1);
191407
 fprintf (outfil, "%s\n", name);
191407
-fprintf (outfil, canned2);
191407
+fprintf (outfil, "%s", canned2);
191407
 
191407
 /*
191407
  * Alphabetize the controls, reason, and argument lists
191407
@@ -264,7 +264,7 @@ while ( ctlref != NULL )
191407
 rsnndx = 0;
191407
 ctlndx = 0;
191407
 if ( mm_ctl_ptr->cnt == 0 )
191407
-    fprintf (outfil, "No children are supported");
191407
+    fprintf (outfil, "%s", "No children are supported");
191407
 while ( rsnndx<mm_rsn_ptr->cnt || ctlndx<mm_ctl_ptr->cnt )
191407
     {
191407
     if ( ctlndx < mm_ctl_ptr->cnt )
191407
@@ -275,7 +275,7 @@ while ( rsnndx<mm_rsn_ptr->cnt || ctlndx<mm_ctl_ptr->cnt )
191407
 	ctlndx += 1;
191407
 	}
191407
     else
191407
-	fprintf (outfil, "@");
191407
+	fprintf (outfil, "%s", "@");
191407
     
191407
     if ( rsnndx < mm_rsn_ptr->cnt )
191407
 	{
191407
@@ -285,9 +285,9 @@ while ( rsnndx<mm_rsn_ptr->cnt || ctlndx<mm_ctl_ptr->cnt )
191407
 	rsnndx += 1;
191407
 	}
191407
     else
191407
-	fprintf (outfil, "\n");
191407
+	fprintf (outfil, "%s", "\n");
191407
     }
191407
-fprintf (outfil, canned3);
191407
+fprintf (outfil, "%s", canned3);
191407
 
191407
 /*
191407
  * Write out the argument table
191407
@@ -319,11 +319,11 @@ while ( argndx < mm_arg_ptr->cnt )
191407
 			 argref->act_resource->syndef->dflt);
191407
 	}
191407
 	else
191407
-	    fprintf (outfil, "  \n");
191407
+	    fprintf (outfil, "%s", "  \n");
191407
     }    
191407
     argndx += 1;
191407
     }
191407
-fprintf (outfil, canned4);
191407
+fprintf (outfil, "%s", canned4);
191407
 
191407
 }
191407
 
191407
diff --git a/tools/wml/wmlresolve.c b/tools/wml/wmlresolve.c
191407
index 464ef29..3b8642c 100644
191407
--- a/tools/wml/wmlresolve.c
191407
+++ b/tools/wml/wmlresolve.c
191407
@@ -1340,7 +1340,7 @@ for ( ndx=0 ; ndx<wml_obj_allclass_ptr->cnt ; ndx++ )
191407
 /*
191407
  * close the output file
191407
  */
191407
-fprintf (outfil, "\n\n");
191407
+fprintf (outfil, "%s", "\n\n");
191407
 printf ("\nCreated report file wml.report");
191407
 fclose (outfil);
191407
 
191407
@@ -1369,14 +1369,14 @@ fprintf (outfil, "\n\n\nClass %s:", synobj->name);
191407
 switch ( synobj->type )
191407
     {
191407
     case WmlClassTypeMetaclass:
191407
-        fprintf (outfil, "\n  Type: Metaclass\t");
191407
+        fprintf (outfil, "%s", "\n  Type: Metaclass\t");
191407
 	if ( synobj->superclass != NULL )
191407
 	    fprintf (outfil, "Superclass: %s\t", synobj->superclass);
191407
 	if ( synobj->parentclass != NULL )
191407
 	    fprintf (outfil, "Parentclass: %s\t", synobj->parentclass);
191407
 	break;
191407
     case WmlClassTypeWidget:
191407
-	fprintf (outfil, "\n  Type: Widget\t");
191407
+	fprintf (outfil, "%s", "\n  Type: Widget\t");
191407
 	if ( synobj->superclass != NULL )
191407
 	    fprintf (outfil, "Superclass: %s\t", synobj->superclass);
191407
 	if ( synobj->parentclass != NULL )
191407
@@ -1388,7 +1388,7 @@ switch ( synobj->type )
191407
 	    fprintf (outfil, "Convenience function: %s", synobj->convfunc);
191407
 	break;
191407
     case WmlClassTypeGadget:
191407
-	fprintf (outfil, "\n  Type: Gadget\t");
191407
+	fprintf (outfil, "%s", "\n  Type: Gadget\t");
191407
 	if ( synobj->superclass != NULL )
191407
 	    fprintf (outfil, "Superclass: %s\t", synobj->superclass);
191407
 	if ( synobj->parentclass != NULL )
191407
@@ -1414,19 +1414,19 @@ if ( clsobj->nondialog != NULL )
191407
  * is intended to match the way resources are printed in the toolkit manual,
191407
  * so that checking is as easy as possible.
191407
  */
191407
-fprintf (outfil, "\n  Arguments:");
191407
+fprintf (outfil, "%s", "\n  Arguments:");
191407
 wmlResolvePrintClassArgs (outfil, clsobj);
191407
 
191407
 /*
191407
  * Print the reasons valid in the class
191407
  */
191407
-fprintf (outfil, "\n  Reasons:");
191407
+fprintf (outfil, "%s", "\n  Reasons:");
191407
 wmlResolvePrintClassReasons (outfil, clsobj);
191407
 
191407
 /*
191407
  * Print the controls valid in the class
191407
  */
191407
-fprintf (outfil, "\n  Controls:");
191407
+fprintf (outfil, "%s", "\n  Controls:");
191407
 for ( ndx=0 ; ndx<wml_obj_class_ptr->cnt ; ndx++ )
191407
     {
191407
     ctrlobj = (WmlClassDefPtr) wml_obj_class_ptr->hvec[ndx].objptr;
191407
@@ -1512,10 +1512,10 @@ for ( ndx=0 ; ndx<wml_obj_arg_ptr->cnt ; ndx++ )
191407
     switch ( resref->exclude )
191407
 	{
191407
 	case WmlAttributeTrue:
191407
-	    fprintf (outfil, "\n\tExclude = True;");
191407
+	    fprintf (outfil, "%s", "\n\tExclude = True;");
191407
 	    break;
191407
 	case WmlAttributeFalse:
191407
-	    fprintf (outfil, "\n\tExclude = False;");
191407
+	    fprintf (outfil, "%s", "\n\tExclude = False;");
191407
 	    break;
191407
 	}
191407
     if ( resref->dflt != NULL )
191407
@@ -1558,10 +1558,10 @@ if ( constr )
191407
 	switch ( resref->exclude )
191407
 	    {
191407
 	    case WmlAttributeTrue:
191407
-	        fprintf (outfil, "\n\tExclude = True;");
191407
+	        fprintf (outfil, "%s", "\n\tExclude = True;");
191407
 		break;
191407
 	    case WmlAttributeFalse:
191407
-		fprintf (outfil, "\n\tExclude = False;");
191407
+		fprintf (outfil, "%s", "\n\tExclude = False;");
191407
 		break;
191407
 	    }
191407
 	if ( resref->dflt != NULL )
191407
@@ -1632,10 +1632,10 @@ for ( ndx=0 ; ndx<wml_obj_reason_ptr->cnt ; ndx++ )
191407
     switch ( resref->exclude )
191407
 	{
191407
 	case WmlAttributeTrue:
191407
-	    fprintf (outfil, "\n\tExclude = True;");
191407
+	    fprintf (outfil, "%s", "\n\tExclude = True;");
191407
 	    break;
191407
 	case WmlAttributeFalse:
191407
-	    fprintf (outfil, "\n\tExclude = False;");
191407
+	    fprintf (outfil, "%s", "\n\tExclude = False;");
191407
 	    break;
191407
 	}
191407
     resobj->ref_ptr = NULL;
191407
-- 
191407
2.13.0
191407