From 38bde89116e018468a3979c37664c13c2ccc81b0 Mon Sep 17 00:00:00 2001 From: kramm Date: Sat, 20 Oct 2001 19:37:21 +0000 Subject: [PATCH] store temporary files in /tmp. --- pdf2swf/SWFOutputDev.cc | 2 +- pdf2swf/xpdf/gfile.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pdf2swf/SWFOutputDev.cc b/pdf2swf/SWFOutputDev.cc index bc0fadf..262550c 100644 --- a/pdf2swf/SWFOutputDev.cc +++ b/pdf2swf/SWFOutputDev.cc @@ -765,7 +765,7 @@ char*writeEmbeddedFontToFile(GfxFont*font) Type1CFontConverter *cvt; Ref embRef; Object refObj, strObj; - tmpFileName = "tmpfont"; + tmpFileName = "/tmp/tmpfont"; font->getEmbeddedFontID(&embRef); f = fopen(tmpFileName, "wb"); diff --git a/pdf2swf/xpdf/gfile.cc b/pdf2swf/xpdf/gfile.cc index cc0324c..7bc9b22 100644 --- a/pdf2swf/xpdf/gfile.cc +++ b/pdf2swf/xpdf/gfile.cc @@ -445,7 +445,7 @@ static char tmpbuf[128]; static char* mktmpname(char*ptr) { // used to be mktemp. This does remove the warnings, but // It's not exactly an improvement. - sprintf(tmpbuf, "%08x%08x",lrand48(),lrand48()); + sprintf(tmpbuf, "/tmp/%08x%08x",lrand48(),lrand48()); return tmpbuf; } GBool openTempFile(GString **name, FILE **f, char *mode, char *ext) { -- 1.7.10.4