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