/[packages]/cauldron/fcitx/current/SOURCES/fcitx-4.2.3-fix-str-fmt.patch
ViewVC logotype

Contents of /cauldron/fcitx/current/SOURCES/fcitx-4.2.3-fix-str-fmt.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 253861 - (show annotations) (download)
Mon Jun 4 02:38:07 2012 UTC (12 years, 4 months ago) by fwang
File size: 1276 byte(s)
fix str fmt
1 --- tools/mb2txt.c.str 2012-06-04 02:34:39.000000000 +0000
2 +++ tools/mb2txt.c 2012-06-04 02:35:49.000000000 +0000
3 @@ -152,7 +152,7 @@
4 printf(templ[TEMPL_VERNEW], iVersion);
5 fread(&iTemp, sizeof(unsigned int), 1, fpDict);
6 } else
7 - printf(templ[TEMPL_VEROLD]);
8 + printf("%s",templ[TEMPL_VEROLD]);
9
10 fread(strCode, sizeof(char), iTemp + 1, fpDict);
11
12 @@ -182,13 +182,13 @@
13 char cPhrase = guessValidChar('^', temp);
14 free(temp);
15 if (cPrompt == 0) {
16 - printf(templ[TEMPL_PROMPT2]);
17 + printf("%s",templ[TEMPL_PROMPT2]);
18 }
19 else {
20 printf(templ[TEMPL_PROMPT], cPrompt);
21 }
22 if (cPhrase == 0) {
23 - printf(templ[TEMPL_CONSTRUCTPHRASE2]);
24 + printf("%s",templ[TEMPL_CONSTRUCTPHRASE2]);
25 }
26 else {
27 printf(templ[TEMPL_CONSTRUCTPHRASE], cPhrase);
28 @@ -205,7 +205,7 @@
29
30 if (iRule) {
31 //表示有组词规则
32 - printf(templ[TEMPL_RULE]);
33 + printf("%s",templ[TEMPL_RULE]);
34
35 for (i = 0; i < iLen - 1; i++) {
36 fread(&iRule, sizeof(unsigned char), 1, fpDict);
37 @@ -229,7 +229,7 @@
38 }
39 }
40
41 - printf(templ[TEMPL_DATA]);
42 + printf("%s",templ[TEMPL_DATA]);
43
44 fread(&j, sizeof(unsigned int), 1, fpDict);
45

  ViewVC Help
Powered by ViewVC 1.1.30