Corretta TFilename::tempdir(). Non funzionava per nomi utente

lunghi 7 chars.


git-svn-id: svn://10.65.10.50/trunk@4575 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
angelo 1997-06-10 13:27:07 +00:00
parent a2a967d125
commit 67b62e323e

View File

@ -1070,7 +1070,8 @@ const TFilename& TFilename::tempdir()
if (theuser.empty())
theuser = "prassi";
theuser.lower();
if (theuser.not_empty() && _tempdir.find(theuser) != _tempdir.len() - theuser.len())
const int f = _tempdir.find(theuser);
if (f < 0 || f != _tempdir.len() - theuser.len())
_tempdir << SLASH << theuser;
_tempdir.lower();
if (!fexist(_tempdir))