aboutsummaryrefslogtreecommitdiff
path: root/lang/nickle
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2004-10-17 01:09:01 +0000
committerEric Anholt <anholt@FreeBSD.org>2004-10-17 01:09:01 +0000
commit5d90a8bd05e68d751129984257311eab801af79d (patch)
treeec38bb49e282f5a08301267b22f7a4a7247db747 /lang/nickle
parent1c9327234faa2b8f3fcabec838e354bd800b3117 (diff)
downloadports-5d90a8bd05e68d751129984257311eab801af79d.tar.gz
ports-5d90a8bd05e68d751129984257311eab801af79d.zip
Notes
Diffstat (limited to 'lang/nickle')
-rw-r--r--lang/nickle/files/patch-array.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/lang/nickle/files/patch-array.c b/lang/nickle/files/patch-array.c
new file mode 100644
index 000000000000..c89768329f16
--- /dev/null
+++ b/lang/nickle/files/patch-array.c
@@ -0,0 +1,22 @@
+--- array.c.orig Sat Oct 16 18:02:07 2004
++++ array.c Sat Oct 16 18:02:10 2004
+@@ -223,12 +223,14 @@
+ NewBoxVector (int nvalues, TypePtr type)
+ {
+ ENTER ();
+- BoxVectorPtr bv = ALLOCATE (&BoxVectorType,
+- sizeof (BoxVector) +
+- nvalues * sizeof (BoxPtr));
++ BoxVectorPtr bv;
+ int i;
+- BoxPtr *boxes = BoxVectorBoxes (bv);
+-
++ BoxPtr *boxes;
++
++ bv = ALLOCATE (&BoxVectorType, sizeof (BoxVector) +
++ nvalues * sizeof (BoxPtr));
++ boxes = BoxVectorBoxes (bv);
++
+ bv->nvalues = nvalues;
+ bv->type = type;
+ for (i = 0; i < nvalues; i++)