aboutsummaryrefslogtreecommitdiff
path: root/chinese/reciteword/files/patch-src_tools_getBdcSound.c
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/reciteword/files/patch-src_tools_getBdcSound.c')
-rw-r--r--chinese/reciteword/files/patch-src_tools_getBdcSound.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/chinese/reciteword/files/patch-src_tools_getBdcSound.c b/chinese/reciteword/files/patch-src_tools_getBdcSound.c
new file mode 100644
index 000000000000..70721081cbaa
--- /dev/null
+++ b/chinese/reciteword/files/patch-src_tools_getBdcSound.c
@@ -0,0 +1,22 @@
+--- src/tools/getBdcSound.c.orig 2003-03-06 19:03:19.000000000 +0800
++++ src/tools/getBdcSound.c 2007-07-30 16:38:45.000000000 +0800
+@@ -16,8 +16,8 @@
+ static unsigned char c2[21],b1[21];
+ int i,j,len;
+
+- strcpy(b1,str);
+- len = strlen(b1);
++ strcpy((char *)b1,(char *)str);
++ len = strlen((char *)b1);
+
+ if (len==1)
+ {
+@@ -262,7 +262,7 @@
+ wav[57]= (((wavweight) & 0xff000000)>>24);
+ fseek(wordwavFile,wavbegin,0);
+ fread(&wav[0x3a], wavweight,1,wordwavFile);
+- str = get_word_str(idxbuf);
++ str = (char *)get_word_str(idxbuf);
+ dirchar = tolower(str[0]);
+ sprintf(wavfilename,"BdcSound/%c/%s.wav",dirchar,str);
+ if (!stat(wavfilename, &st))