/[packages]/cauldron/groff/current/SOURCES/groff-1.20.1-string-format-error.patch
ViewVC logotype

Contents of /cauldron/groff/current/SOURCES/groff-1.20.1-string-format-error.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 259 - (show annotations) (download)
Fri Jan 7 16:09:30 2011 UTC (13 years, 3 months ago) by pterjan
File size: 1535 byte(s)
imported package groff
1 diff -Nru groff-1.20.1/src/devices/grohtml/post-html.cpp new/src/devices/grohtml/post-html.cpp
2 --- groff-1.20.1/src/devices/grohtml/post-html.cpp 2009-01-09 12:25:52.000000000 -0200
3 +++ new/src/devices/grohtml/post-html.cpp 2009-10-30 18:02:18.000000000 -0200
4 @@ -1588,7 +1588,7 @@
5
6 buffer += as_string(h);
7 buffer += '\0';
8 - fprintf(f, buffer.contents());
9 + fprintf(f, "%s", buffer.contents());
10 } else
11 fputs(g->text_string, f);
12 h++;
13 diff -Nru groff-1.20.1/src/roff/troff/node.cpp new/src/roff/troff/node.cpp
14 --- groff-1.20.1/src/roff/troff/node.cpp 2009-01-09 12:25:52.000000000 -0200
15 +++ new/src/roff/troff/node.cpp 2009-10-30 17:58:51.000000000 -0200
16 @@ -2196,7 +2196,7 @@
17 if (c)
18 fprintf(stderr, "%c", c);
19 else
20 - fprintf(stderr, ci->nm.contents());
21 + fprintf(stderr, "%s", ci->nm.contents());
22 if (push_state)
23 fprintf(stderr, " <push_state>");
24 if (state)
25 diff -Nru groff-1.20.1/src/utils/hpftodit/hpftodit.cpp new/src/utils/hpftodit/hpftodit.cpp
26 --- groff-1.20.1/src/utils/hpftodit/hpftodit.cpp 2009-01-09 12:25:52.000000000 -0200
27 +++ new/src/utils/hpftodit/hpftodit.cpp 2009-10-30 18:05:13.000000000 -0200
28 @@ -870,9 +870,9 @@
29 else if (!all_flag)
30 continue;
31 else if (tfm_type == MSL)
32 - printf(hp_msl_to_ucode_name(charcode));
33 + printf("%s", hp_msl_to_ucode_name(charcode));
34 else
35 - printf(unicode_to_ucode_name(charcode));
36 + printf("%s", unicode_to_ucode_name(charcode));
37
38 printf("\t%d,%d",
39 scale(char_table[i].width), scale(char_table[i].ascent));

  ViewVC Help
Powered by ViewVC 1.1.30