summaryrefslogtreecommitdiff
path: root/print/dviselect/files/patch-lib_tfmfont.c
diff options
context:
space:
mode:
Diffstat (limited to 'print/dviselect/files/patch-lib_tfmfont.c')
-rw-r--r--print/dviselect/files/patch-lib_tfmfont.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/print/dviselect/files/patch-lib_tfmfont.c b/print/dviselect/files/patch-lib_tfmfont.c
new file mode 100644
index 000000000000..9de2cc7bce0f
--- /dev/null
+++ b/print/dviselect/files/patch-lib_tfmfont.c
@@ -0,0 +1,20 @@
+--- lib/tfmfont.c.orig 1989-11-15 13:20:03.000000000 +0100
++++ lib/tfmfont.c 2012-11-30 15:00:41.000000000 +0100
+@@ -139,7 +139,7 @@
+ fail:
+ (void) fclose(fd);
+ if (tfm != NULL) {
+- free((char *) tfm); (char *) tfm = 0;
++ free((char *) tfm); tfm = 0;
+ }
+ return (-1);
+ }
+@@ -199,7 +199,7 @@
+ #define EDGE 2
+
+ if (tfm->tfm_edge == 0)
+- return;
++ return (-1);
+ if (tfm->tfm_edge != 2) panic("tfm_rasterise");
+ for (i = l; i < h; i++) {
+ g = f->f_gly[i];