From 5e72a09d691c2d063c86c39f760f68ffc2710828 Mon Sep 17 00:00:00 2001 From: kramm Date: Tue, 28 May 2002 11:02:34 +0000 Subject: [PATCH] use mktmpname(), not tmpnam(). --- pdf2swf/xpdf/gfile.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pdf2swf/xpdf/gfile.cc b/pdf2swf/xpdf/gfile.cc index 1848908..9c7d789 100644 --- a/pdf2swf/xpdf/gfile.cc +++ b/pdf2swf/xpdf/gfile.cc @@ -489,7 +489,7 @@ GBool openTempFile(GString **name, FILE **f, char *mode, char *ext) { // with this file name after the tmpnam call and before the fopen // call. I will happily accept fixes to this function for non-Unix // OSs. - if (!(s = tmpnam(NULL))) { + if (!(s = mktmpname(NULL))) { //was: tmpnam return gFalse; } *name = new GString(s); @@ -516,7 +516,7 @@ GBool openTempFile(GString **name, FILE **f, char *mode, char *ext) { (*name)->append("/XXXXXX")->append(ext); fd = mkstemps((*name)->getCString(), strlen(ext)); #else - if (!(s = tmpnam(NULL))) { + if (!(s = mktmpname(NULL))) { //was: tmpnam return gFalse; } *name = new GString(s); @@ -533,7 +533,7 @@ GBool openTempFile(GString **name, FILE **f, char *mode, char *ext) { (*name)->append("/XXXXXX"); fd = mkstemp((*name)->getCString()); #else // HAVE_MKSTEMP - if (!(s = tmpnam(NULL))) { + if (!(s = mktmpname(NULL))) { //was: tmpnam return gFalse; } *name = new GString(s); -- 1.7.10.4