git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
193f333
)
store temporary files in /tmp.
author
kramm
<kramm>
Sat, 20 Oct 2001 19:37:21 +0000
(19:37 +0000)
committer
kramm
<kramm>
Sat, 20 Oct 2001 19:37:21 +0000
(19:37 +0000)
pdf2swf/SWFOutputDev.cc
patch
|
blob
|
history
pdf2swf/xpdf/gfile.cc
patch
|
blob
|
history
diff --git
a/pdf2swf/SWFOutputDev.cc
b/pdf2swf/SWFOutputDev.cc
index
bc0fadf
..
262550c
100644
(file)
--- a/
pdf2swf/SWFOutputDev.cc
+++ b/
pdf2swf/SWFOutputDev.cc
@@
-765,7
+765,7
@@
char*writeEmbeddedFontToFile(GfxFont*font)
Type1CFontConverter *cvt;
Ref embRef;
Object refObj, strObj;
Type1CFontConverter *cvt;
Ref embRef;
Object refObj, strObj;
- tmpFileName = "tmpfont";
+ tmpFileName = "/tmp/tmpfont";
font->getEmbeddedFontID(&embRef);
f = fopen(tmpFileName, "wb");
font->getEmbeddedFontID(&embRef);
f = fopen(tmpFileName, "wb");
diff --git
a/pdf2swf/xpdf/gfile.cc
b/pdf2swf/xpdf/gfile.cc
index
cc0324c
..
7bc9b22
100644
(file)
--- 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.
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) {
return tmpbuf;
}
GBool openTempFile(GString **name, FILE **f, char *mode, char *ext) {