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