aboutsummaryrefslogtreecommitdiff
path: root/development/xa/dxa-malloc-patch.txt
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2013-10-27 21:14:00 -0500
committerRobby Workman <rworkman@slackbuilds.org>2013-10-27 23:39:07 -0500
commitb9dcd6d7c4c71a41152ea989987bd1125f630a24 (patch)
tree330a8a10d71bbc166a36d97287adfc51de018d61 /development/xa/dxa-malloc-patch.txt
parentabda283987c4cce0c6b024a89420f35d9d0f7623 (diff)
development/xa: Added (Andre Fachat's open-source 6502 cross assembler)
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'development/xa/dxa-malloc-patch.txt')
-rw-r--r--development/xa/dxa-malloc-patch.txt21
1 files changed, 21 insertions, 0 deletions
diff --git a/development/xa/dxa-malloc-patch.txt b/development/xa/dxa-malloc-patch.txt
new file mode 100644
index 000000000000..895ac7b454bf
--- /dev/null
+++ b/development/xa/dxa-malloc-patch.txt
@@ -0,0 +1,21 @@
+--- label.c.orig 2006-11-01 18:23:28.000000000 +0200
++++ label.c 2010-08-31 21:45:43.000000000 +0300
+@@ -40,7 +40,7 @@
+ #include "opcodes.h"
+
+ label *labeltable;
+-char defaultlabel[5];
++char defaultlabel[6];
+ unsigned numLabels = 0;
+
+ #ifndef __STDC__
+@@ -55,7 +55,7 @@
+ label *entry;
+ char *buffer;
+
+- if (!((buffer = malloc (strlen (name)))))
++ if (!((buffer = malloc (strlen (name) + 1))))
+ return;
+
+ entry = numLabels ?
+