summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/utils/m-tx/mtx-0.60d-PATCHES/ChangeLog5
-rw-r--r--Build/source/utils/m-tx/mtx-0.60d-PATCHES/patch-02-malloc12
-rw-r--r--Build/source/utils/m-tx/mtx-0.60d/multfile.c2
3 files changed, 18 insertions, 1 deletions
diff --git a/Build/source/utils/m-tx/mtx-0.60d-PATCHES/ChangeLog b/Build/source/utils/m-tx/mtx-0.60d-PATCHES/ChangeLog
index 925cebde3c1..ee186bd2a24 100644
--- a/Build/source/utils/m-tx/mtx-0.60d-PATCHES/ChangeLog
+++ b/Build/source/utils/m-tx/mtx-0.60d-PATCHES/ChangeLog
@@ -1,3 +1,8 @@
+2012-10-04 Peter Breitenlohner <peb@mppmu.mpg.de>
+
+ * patch-02-malloc (new): Check value returned by malloc(), i.e.,
+ undo action of sed from Makefile.orig.
+
2012-05-16 Peter Breitenlohner <peb@mppmu.mpg.de>
* patch-01-write-bin (new): Use binary mode for output files.
diff --git a/Build/source/utils/m-tx/mtx-0.60d-PATCHES/patch-02-malloc b/Build/source/utils/m-tx/mtx-0.60d-PATCHES/patch-02-malloc
new file mode 100644
index 00000000000..401234ca0d7
--- /dev/null
+++ b/Build/source/utils/m-tx/mtx-0.60d-PATCHES/patch-02-malloc
@@ -0,0 +1,12 @@
+diff -ur mtx-0.60d.orig/multfile.c mtx-0.60d/multfile.c
+--- mtx-0.60d.orig/multfile.c 2012-04-05 14:47:20.000000000 +0200
++++ mtx-0.60d/multfile.c 2012-10-04 11:56:59.000000000 +0200
+@@ -60,7 +60,7 @@
+ printf("===! Ignoring recursive include of file %s\n", filename);
+ return;
+ }
+- newnode = malloc(sizeof(filenode));
++ newnode = Malloc(sizeof(filenode));
+ newnode->actualfile = NULL;
+ strcpy(newnode->name, filename);
+ newnode->prev = current;
diff --git a/Build/source/utils/m-tx/mtx-0.60d/multfile.c b/Build/source/utils/m-tx/mtx-0.60d/multfile.c
index b0e78943650..53d40c9bd09 100644
--- a/Build/source/utils/m-tx/mtx-0.60d/multfile.c
+++ b/Build/source/utils/m-tx/mtx-0.60d/multfile.c
@@ -60,7 +60,7 @@ void pushFile(Char *filename)
printf("===! Ignoring recursive include of file %s\n", filename);
return;
}
- newnode = malloc(sizeof(filenode));
+ newnode = Malloc(sizeof(filenode));
newnode->actualfile = NULL;
strcpy(newnode->name, filename);
newnode->prev = current;