groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Groff-commit] groff ChangeLog src/devices/grohtml/post-html.c...


From: Werner LEMBERG
Subject: [Groff-commit] groff ChangeLog src/devices/grohtml/post-html.c...
Date: Fri, 20 Nov 2009 05:10:19 +0000

CVSROOT:        /cvsroot/groff
Module name:    groff
Changes by:     Werner LEMBERG <wl>     09/11/20 05:10:19

Modified files:
        .              : ChangeLog 
        src/devices/grohtml: post-html.cpp 
        src/roff/troff : node.cpp 
        src/utils/hpftodit: hpftodit.cpp 

Log message:
        * */*.cpp: Replace `printf(string);' with `printf("%s", string);'.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/groff/ChangeLog?cvsroot=groff&r1=1.1214&r2=1.1215
http://cvs.savannah.gnu.org/viewcvs/groff/src/devices/grohtml/post-html.cpp?cvsroot=groff&r1=1.43&r2=1.44
http://cvs.savannah.gnu.org/viewcvs/groff/src/roff/troff/node.cpp?cvsroot=groff&r1=1.30&r2=1.31
http://cvs.savannah.gnu.org/viewcvs/groff/src/utils/hpftodit/hpftodit.cpp?cvsroot=groff&r1=1.15&r2=1.16

Patches:
Index: ChangeLog
===================================================================
RCS file: /cvsroot/groff/groff/ChangeLog,v
retrieving revision 1.1214
retrieving revision 1.1215
diff -u -b -r1.1214 -r1.1215
--- ChangeLog   28 Oct 2009 07:54:09 -0000      1.1214
+++ ChangeLog   20 Nov 2009 05:10:17 -0000      1.1215
@@ -1,3 +1,7 @@
+2009-11-20  Paulo Ricardo Zanoni  <address@hidden>
+
+       * */*.cpp: Replace `printf(string);' with `printf("%s", string);'.
+
 2009-10-28  Werner LEMBERG  <address@hidden>
 
        Document limitations with `#' characters, tbl, and eqn.

Index: src/devices/grohtml/post-html.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/devices/grohtml/post-html.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -b -r1.43 -r1.44
--- src/devices/grohtml/post-html.cpp   5 Jan 2009 20:10:56 -0000       1.43
+++ src/devices/grohtml/post-html.cpp   20 Nov 2009 05:10:18 -0000      1.44
@@ -1588,7 +1588,7 @@
 
          buffer += as_string(h);
          buffer += '\0';
-         fprintf(f, buffer.contents());
+         fprintf(f, "%s", buffer.contents());
        } else
          fputs(g->text_string, f);
        h++;

Index: src/roff/troff/node.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/roff/troff/node.cpp,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -b -r1.30 -r1.31
--- src/roff/troff/node.cpp     8 Sep 2009 07:16:54 -0000       1.30
+++ src/roff/troff/node.cpp     20 Nov 2009 05:10:18 -0000      1.31
@@ -2204,7 +2204,7 @@
   if (c)
     fprintf(stderr, "%c", c);
   else
-    fprintf(stderr, ci->nm.contents());
+    fprintf(stderr, "%s", ci->nm.contents());
   if (push_state)
     fprintf(stderr, " <push_state>");
   if (state)

Index: src/utils/hpftodit/hpftodit.cpp
===================================================================
RCS file: /cvsroot/groff/groff/src/utils/hpftodit/hpftodit.cpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -b -r1.15 -r1.16
--- src/utils/hpftodit/hpftodit.cpp     5 Jan 2009 20:11:14 -0000       1.15
+++ src/utils/hpftodit/hpftodit.cpp     20 Nov 2009 05:10:19 -0000      1.16
@@ -870,9 +870,9 @@
       else if (!all_flag)
        continue;
       else if (tfm_type == MSL)
-       printf(hp_msl_to_ucode_name(charcode));
+       printf("%s", hp_msl_to_ucode_name(charcode));
       else
-       printf(unicode_to_ucode_name(charcode));
+       printf("%s", unicode_to_ucode_name(charcode));
 
       printf("\t%d,%d",
             scale(char_table[i].width), scale(char_table[i].ascent));




reply via email to

[Prev in Thread] Current Thread [Next in Thread]