aboutsummaryrefslogtreecommitdiffstats
path: root/games/scramble/files/patch-src-perm.c
diff options
context:
space:
mode:
Diffstat (limited to 'games/scramble/files/patch-src-perm.c')
-rw-r--r--games/scramble/files/patch-src-perm.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/games/scramble/files/patch-src-perm.c b/games/scramble/files/patch-src-perm.c
new file mode 100644
index 000000000000..18d88ac83412
--- /dev/null
+++ b/games/scramble/files/patch-src-perm.c
@@ -0,0 +1,15 @@
+--- src/perm.c.orig Sun Mar 27 03:45:59 2005
++++ src/perm.c Thu Nov 10 05:23:00 2005
+@@ -149,11 +149,11 @@
+ ****************************************************/
+ static void resize()
+ {
++ struct node ** old_table = dictionary;
+ unsigned int a;
+ size_t old_size = sizeOfTable, i;
+ sizeOfTable *= 2;
+ numOfEntries = 0;
+- struct node ** old_table = dictionary;
+
+ dictionary = (struct node **)malloc(sizeof(struct node *) * sizeOfTable);
+ if(!dictionary) {