summaryrefslogtreecommitdiff
path: root/japanese/FreeWnn-lib/files/patch-aq
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>1999-02-10 14:32:00 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>1999-02-10 14:32:00 +0000
commitb300811eaf814edbd9656eac7b573d7993927f72 (patch)
tree87a320605ebd26e3bb1a8e03d2d35092095f103c /japanese/FreeWnn-lib/files/patch-aq
parentupgrade to vr13 to close security hole and lots of enhancements (diff)
Add dictionaries and some fixes.
PR: ports/9625 Submitted by: Satoshi Taoka <taoka@infonets.hiroshima-u.ac.jp>
Diffstat (limited to '')
-rw-r--r--japanese/FreeWnn-lib/files/patch-aq26
1 files changed, 26 insertions, 0 deletions
diff --git a/japanese/FreeWnn-lib/files/patch-aq b/japanese/FreeWnn-lib/files/patch-aq
new file mode 100644
index 000000000000..d476242347bd
--- /dev/null
+++ b/japanese/FreeWnn-lib/files/patch-aq
@@ -0,0 +1,26 @@
+--- Xwnmo/xwnmo/localalloc.c.~1~ Tue Dec 1 15:10:40 1992
++++ Xwnmo/xwnmo/localalloc.c Thu Jun 25 12:11:29 1998
+@@ -112,6 +112,7 @@
+ {
+ char *ptr;
+ if (size == 0) return(NULL);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if ((ptr = malloc(size)) == NULL) {
+ #ifdef ALLOC_DEBUG
+ print_out1("alloc failed with size = %d", size);
+@@ -134,6 +135,7 @@
+ unsigned size;
+ {
+ if (size == 0) return(ptr);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if (ptr == NULL) return(Malloc(size));
+ #ifdef ALLOC_DEBUG
+ unregister_debug(ptr);
+@@ -153,6 +155,7 @@
+ {
+ char *ptr;
+ if (size == 0) return(NULL);
++ size += (sizeof(char *)-(size%sizeof(char *)));
+ if ((ptr = calloc(num, size)) == NULL) {
+ return(NULL);
+ }