File libchewing-gcc-fix.diff of Package libchewing

---
 src/hanyupinyin.c |    1 +
 1 file changed, 1 insertion(+)

Index: libchewing-0.3.2/src/hanyupinyin.c
===================================================================
--- libchewing-0.3.2.orig/src/hanyupinyin.c	2008-12-01 15:29:20.000000000 +0100
+++ libchewing-0.3.2/src/hanyupinyin.c	2010-03-04 14:23:25.000000000 +0100
@@ -74,6 +74,7 @@ int InitHanyuPinYin( const char *prefix
 		}
 		fclose( fd );
 	}
+	return 1;
 }
 
 /**
Index: libchewing-0.3.2/src/tree.c
===================================================================
--- libchewing-0.3.2.orig/src/tree.c	2008-12-01 15:29:20.000000000 +0100
+++ libchewing-0.3.2/src/tree.c	2010-03-04 14:23:57.000000000 +0100
@@ -973,7 +973,7 @@ int Phrasing(
 
 	/* set phrasing output */
 	OutputRecordStr(
-		ppo->chiBuf, sizeof(ppo->chiBuf),
+		ppo->chiBuf, sizeof(ppo->chiBuf)-strlen(ppo->chiBuf)-1,
 		( treeData.phList )->arrIndex, 
 		( treeData.phList )->nInter, 
 		phoneSeq, 
openSUSE Build Service is sponsored by