summaryrefslogtreecommitdiff
path: root/Build/source/utils/m-tx
diff options
context:
space:
mode:
authorPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-04 10:16:22 +0000
committerPeter Breitenlohner <peb@mppmu.mpg.de>2012-10-04 10:16:22 +0000
commit98e0dde44b1cc1668a98162cd1037770216bb41b (patch)
tree7e114a7d31755b1923ac08df7fd85d2911730ce0 /Build/source/utils/m-tx
parentfb9a96de573ac5baf0411991327b683ba28f7aab (diff)
m-tx: Check value returned by malloc()
git-svn-id: svn://tug.org/texlive/trunk@27875 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/utils/m-tx')
-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;