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:
parent
ff968efd94
commit
6657cba5c8
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user