Browse Source

add patchs

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@10161 ec354946-7b23-47d6-9f5a-488ba84defc7
ara_t 8 years ago
parent
commit
ca0423e2f9
2 changed files with 29 additions and 0 deletions
  1. 18 0
      o/open_jtalk/jpcommon_label.c.patch
  2. 11 0
      o/open_jtalk/open_jtalk.c.patch

+ 18 - 0
o/open_jtalk/jpcommon_label.c.patch

@@ -0,0 +1,18 @@
+--- open_jtalk-1.09/jpcommon/jpcommon_label-org.c	2015-12-25 10:14:27.000000000 +0900
++++ open_jtalk-1.09/jpcommon/jpcommon_label.c	2015-12-28 08:55:43.560668141 +0900
+@@ -296,6 +296,7 @@
+       if (index == a)
+          break;
+    }
++   if (i > 3) i = 3;
+    return i;
+ }
+ 
+@@ -395,6 +396,7 @@
+ 
+    for (i = 0, index = m->next; index != NULL; index = index->next)
+       i++;
++   if (i > 10) i = 10;
+    return index_mora_in_utterance(m) + i;
+ }
+ 

+ 11 - 0
o/open_jtalk/open_jtalk.c.patch

@@ -0,0 +1,11 @@
+--- open_jtalk-1.09/bin/open_jtalk-org.c	2015-12-25 10:14:26.000000000 +0900
++++ open_jtalk-1.09/bin/open_jtalk.c	2015-12-28 08:53:39.630211814 +0900
+@@ -74,7 +74,7 @@
+ #include "njd_set_long_vowel.h"
+ #include "njd2jpcommon.h"
+ 
+-#define MAXBUFLEN 1024
++#define MAXBUFLEN 2048
+ 
+ typedef struct _Open_JTalk {
+    Mecab mecab;