1
0
mirror of https://github.com/aportelli/LatAnalyze.git synced 2024-11-10 08:55:37 +00:00

Plot: minor fix in temporary file management

This commit is contained in:
Antonin Portelli 2015-12-09 18:12:39 +00:00 committed by Antonin Portelli
parent ff968efd94
commit 6657cba5c8

View File

@ -72,7 +72,7 @@ string PlotObject::dumpToTmpFile(const DMat &m)
for (Index j = 0; j < m.cols(); ++j)
{
}
strcpy(tmpFileName, "/tmp/latan_plot_tmp.XXXXXX.dat");
sprintf(tmpFileName, "%s/latan_plot_tmp.XXXXXX.dat", P_tmpdir);
fd = mkstemps(tmpFileName, 4);
if (fd == -1)
{
@ -384,6 +384,7 @@ void Plot::reset(void)
{
headCommand_.clear();
plotCommand_.clear();
tmpFileName_.clear();
initOptions();
}