diff options
author | Andreas Klemm <andreas@FreeBSD.org> | 2000-08-24 20:44:58 +0000 |
---|---|---|
committer | Andreas Klemm <andreas@FreeBSD.org> | 2000-08-24 20:44:58 +0000 |
commit | 9f1c27c0ecdf94f3ab40ac68fbccd02ae789b3d5 (patch) | |
tree | 7be0757e7439f79bb73fbe041ccd2ce4005fed2e /print/ghostscript8/files/patch-ad | |
parent | The software's own genarch program took several HOURS on (diff) |
forgot the two patches, sorry.
PR: 20038
Submitted by: Mikhail Teterin <mi@aldan.algebra.com>
Notes
Notes:
svn path=/head/; revision=31937
Diffstat (limited to 'print/ghostscript8/files/patch-ad')
-rw-r--r-- | print/ghostscript8/files/patch-ad | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/print/ghostscript8/files/patch-ad b/print/ghostscript8/files/patch-ad new file mode 100644 index 000000000000..943abecaa755 --- /dev/null +++ b/print/ghostscript8/files/patch-ad @@ -0,0 +1,15 @@ +This patch replaces the use of the dangerous mktemp/fopen combo +with the safe mkstemp/fdopen. + + -mi + +--- src/gp_unifs.c Thu Mar 9 03:40:41 2000 ++++ src/gp_unifs.c Wed Jul 19 09:56:42 2000 +@@ -71,4 +71,5 @@ + strcat(fname, "XXXXXX"); +- mktemp(fname); +- return fopen(fname, mode); ++ len = mkstemp(fname); /* reuse the no longer needed variable */ ++ if (len == -1) return NULL; ++ return fdopen(len, mode); + } |