summaryrefslogtreecommitdiff
path: root/chinese/libchewing/files/patch-src-char.c
diff options
context:
space:
mode:
Diffstat (limited to 'chinese/libchewing/files/patch-src-char.c')
-rw-r--r--chinese/libchewing/files/patch-src-char.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/chinese/libchewing/files/patch-src-char.c b/chinese/libchewing/files/patch-src-char.c
new file mode 100644
index 000000000000..353fd37bd874
--- /dev/null
+++ b/chinese/libchewing/files/patch-src-char.c
@@ -0,0 +1,11 @@
+--- src/char.c.orig Mon May 15 14:49:43 2006
++++ src/char.c Sun May 21 00:14:41 2006
+@@ -126,7 +126,7 @@
+
+ fgettab( buf, 1000, dictfile );
+ /* only read 6 bytes to wrd_ptr->word avoid buffer overflow */
+- sscanf( buf, "%hu %6s", &sh, wrd_ptr->word );
++ sscanf( buf, "%hu %6[^ ]", &sh, wrd_ptr->word );
+ assert( wrd_ptr->word != NULL );
+ }
+