-rw-r--r-- | noncore/unsupported/qpdf/gooStub.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/noncore/unsupported/qpdf/gooStub.cpp b/noncore/unsupported/qpdf/gooStub.cpp index cc29685..edbea55 100644 --- a/noncore/unsupported/qpdf/gooStub.cpp +++ b/noncore/unsupported/qpdf/gooStub.cpp @@ -40,13 +40,13 @@ GBool openTempFile ( GString **name, FILE **f, char *mode, char *ext ) if (!( s = tmpnam ( 0 ))) return gFalse; - *name = new GString ( "qpdf_" ); - (*name)-> append ( s ); + *name = new GString ( s ); s = (*name)-> getCString ( ); if (( p = strrchr ( s, '.' ))) (*name)-> del ( p - s, (*name)-> getLength ( ) - ( p - s )); + (*name)-> append ( "_qpdf" ); (*name)-> append ( ext ); fd = open ((*name)-> getCString ( ), O_WRONLY | O_CREAT | O_EXCL, 0600 ); |