/[packages]/cauldron/scim-sunpinyin/current/SOURCES/scim-sunpinyin-str-fmt.patch
ViewVC logotype

Contents of /cauldron/scim-sunpinyin/current/SOURCES/scim-sunpinyin-str-fmt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 73810 - (show annotations) (download)
Thu Mar 17 23:36:44 2011 UTC (13 years, 1 month ago) by tv
File size: 1420 byte(s)
imported package scim-sunpinyin
1 --- src/imi_context.cpp.str 2009-01-30 11:13:17.000000000 -0500
2 +++ src/imi_context.cpp 2009-01-30 11:14:03.000000000 -0500
3 @@ -1468,7 +1468,7 @@
4 void
5 CBone::print(std::string& prefix)
6 {
7 - printf(prefix.c_str());
8 + printf("%s",prefix.c_str());
9 printf("{Bone@%X:", this);
10 print_wide(m_String.c_str());
11 printf("}");
12 @@ -1482,7 +1482,7 @@
13 void
14 CCandidate::print(std::string& prefix)
15 {
16 - printf(prefix.c_str());
17 + printf("%s",prefix.c_str());
18 printf("<Candidate @%X:", this);
19 print_wide(m_String);
20 printf("-- %d}", m_WordId);
21 --- src/lattice_states.cpp.str 2009-01-30 11:14:21.000000000 -0500
22 +++ src/lattice_states.cpp 2009-01-30 11:15:00.000000000 -0500
23 @@ -45,7 +45,7 @@
24 void
25 CBoneInnerData::print(std::string& prefix)
26 {
27 - printf(prefix.c_str());
28 + printf("%s",prefix.c_str());
29 printf("[BoneInnerData @%X]", this);
30 if (m_BWType != NoBestWordStartHere) {
31 printf((m_BWType == UserSelectedBestWord)?"U ":"B ");
32 @@ -53,7 +53,7 @@
33 m_BestWord.print(nullstr);
34 }
35 printf("\n");
36 - printf(prefix.c_str());
37 + printf("%s",prefix.c_str());
38 printf("[status list @%X]\n", &m_LatticeNodes);
39
40 prefix += " ";
41 @@ -71,7 +71,7 @@
42 void
43 TLatticeState::print(std::string& prefix)
44 {
45 - printf(prefix.c_str());
46 + printf("%s",prefix.c_str());
47 #ifdef _USE_RAW_PROBABILITY
48 char valbuf[256];
49 m_Score.toString(valbuf);

  ViewVC Help
Powered by ViewVC 1.1.30