1
0
mirror of https://github.com/ElvishArtisan/rivendell.git synced 2025-06-11 09:32:46 +02:00

Replace getenv("TEMP") by RDTempFile() in RDFormPost::RDFormPost

This commit is contained in:
Alban Peignier 2014-09-05 09:53:38 +02:00
parent 135e200331
commit dd2fb90856

@ -71,12 +71,7 @@ RDFormPost::RDFormPost(RDFormPost::Encoding encoding,unsigned maxsize,
//
// Initialize Temp Directory Path
//
if(getenv("TMPDIR")!=NULL) {
strcpy(tempdir,getenv("TMPDIR"));
}
else {
strcpy(tempdir,"/tmp");
}
strcpy(tempdir,RDTempDir());
strcat(tempdir,"/rivendellXXXXXX");
post_tempdir=mkdtemp(tempdir);
if(post_tempdir.isNull()) {