dthelp: compiler warning and coverity warning fixes

This commit is contained in:
Peter Howkins
2018-03-29 00:21:44 +01:00
parent 50a96959f0
commit e12e009eb5
14 changed files with 68 additions and 34 deletions

View File

@@ -341,7 +341,7 @@ CreateVolumeLink (
* put the abstract information about this
* family in the header file
*/
fprintf (outTopic, GetMessage (3, 3, "<P before 1 first 1 left 1>\n"));
fprintf (outTopic, "%s", GetMessage (3, 3, "<P before 1 first 1 left 1>\n"));
if (abstract != NULL)
{
@@ -489,7 +489,7 @@ CreateFamily (
*/
fprintf (out_topic, (GetMessage (3, 2, (char*)defaultTitle14)),
title);
fprintf (out_topic, (GetMessage (3, 3, "<P before 1 first 1 left 1>\n")));
fprintf (out_topic, "%s", (GetMessage (3, 3, "<P before 1 first 1 left 1>\n")));
fprintf (out_topic, "%s\n", abstract);
fprintf (out_topic, "</P>\n");
@@ -549,7 +549,7 @@ CreateFamily (
bitmap, familyName);
}
else
fprintf (out_header, GetMessage (3, 3, "<P before 1 first 1 left 1>\n"));
fprintf (out_header, "%s", GetMessage (3, 3, "<P before 1 first 1 left 1>\n"));
fprintf (out_header, "%s\n", abstract);
fprintf (out_header, "</P></CHARACTERSET>\n");
@@ -579,6 +579,8 @@ CreateFamily (
}
XrmDestroyDatabase (db);
}
free (token);
return result;
}