mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-06-03 09:32:34 +02:00
Replace getenv("TEMP") by RDTempFile() in RDFormPost::RDFormPost
This commit is contained in:
parent
135e200331
commit
dd2fb90856
@ -71,12 +71,7 @@ RDFormPost::RDFormPost(RDFormPost::Encoding encoding,unsigned maxsize,
|
|||||||
//
|
//
|
||||||
// Initialize Temp Directory Path
|
// Initialize Temp Directory Path
|
||||||
//
|
//
|
||||||
if(getenv("TMPDIR")!=NULL) {
|
strcpy(tempdir,RDTempDir());
|
||||||
strcpy(tempdir,getenv("TMPDIR"));
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
strcpy(tempdir,"/tmp");
|
|
||||||
}
|
|
||||||
strcat(tempdir,"/rivendellXXXXXX");
|
strcat(tempdir,"/rivendellXXXXXX");
|
||||||
post_tempdir=mkdtemp(tempdir);
|
post_tempdir=mkdtemp(tempdir);
|
||||||
if(post_tempdir.isNull()) {
|
if(post_tempdir.isNull()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user