diff options
author | taca <taca@pkgsrc.org> | 2001-01-25 12:29:51 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2001-01-25 12:29:51 +0000 |
commit | c8db095c211bc56b16f7b0b396097c63972e0a86 (patch) | |
tree | f96b663c4f9e5011aa83aa8bc52bb64e463a0b8c /japanese/kakasi | |
parent | b293e6243a7ccbe097e519086475aa45c19356ae (diff) | |
download | pkgsrc-c8db095c211bc56b16f7b0b396097c63972e0a86.tar.gz |
Update kakasi to 2.3.3 with correcting catman page's file name,
from http://kakasi.namazu.org/index.html.ja and ChangeLog:
o Improve performance of kakasi library.
o Fix memory leak in kakasi library when read dictionaries.
o Fix buffer overflow (in src/kakasi.c)
o Clean up of source codes.
Diffstat (limited to 'japanese/kakasi')
-rw-r--r-- | japanese/kakasi/patches/patch-aa | 26 | ||||
-rw-r--r-- | japanese/kakasi/patches/patch-ab | 13 |
2 files changed, 39 insertions, 0 deletions
diff --git a/japanese/kakasi/patches/patch-aa b/japanese/kakasi/patches/patch-aa new file mode 100644 index 00000000000..3f61a6f3cdf --- /dev/null +++ b/japanese/kakasi/patches/patch-aa @@ -0,0 +1,26 @@ +$NetBSD: patch-aa,v 1.6 2001/01/25 12:29:52 taca Exp $ + +--- lib/libkakasi.c.orig Sun Jan 21 17:28:04 2001 ++++ lib/libkakasi.c +@@ -105,6 +105,12 @@ + static int digest PARAMS((Character *c, int clen, Character *r, int rlen, int type, int (*proc)(void))); + static void digest_shift PARAMS((Character *c, int s)); + #else /* LIBRARY */ ++void digest_start_copy PARAMS((Character *c, Character *r)); ++void put_separator PARAMS((void)); ++void putchars PARAMS((Character *results)); ++void digest_out PARAMS((Character *c, int ret)); ++int digest PARAMS((Character *c, int clen, Character *r, int rlen, int type, int (*proc)(void))); ++void digest_shift PARAMS((Character *c, int s)); + static void free_jisyo PARAMS((void)); + #endif /* LIBRARY */ + +@@ -495,7 +501,7 @@ + + char * + kakasi_do(str) +- char *str; ++ unsigned char *str; + { + Character c[KAKASIBUF], r[KAKASIBUF]; + int clen, ptype, pctype; diff --git a/japanese/kakasi/patches/patch-ab b/japanese/kakasi/patches/patch-ab new file mode 100644 index 00000000000..ee5131c0a62 --- /dev/null +++ b/japanese/kakasi/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.4 2001/01/25 12:29:52 taca Exp $ + +--- lib/libkakasi.h.orig Fri Jan 19 12:48:44 2001 ++++ lib/libkakasi.h +@@ -31,7 +31,7 @@ + #endif + + int kakasi_getopt_argv PARAMS((int argc, char **argv)); +-char *kakasi_do PARAMS((char *str)); ++char *kakasi_do PARAMS((unsigned char *str)); + int kakasi_close_kanwadict PARAMS((void)); + + /* |