From bcdd621fb58a04d7b212486af5178cd03948cc53 Mon Sep 17 00:00:00 2001 From: alex Date: Mon, 6 Feb 1995 10:33:02 +0000 Subject: [PATCH] Corretta costruzione del nome temporaneo git-svn-id: svn://10.65.10.50/trunk@967 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/strings.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/strings.cpp b/include/strings.cpp index 639c459ec..6d47fbd06 100755 --- a/include/strings.cpp +++ b/include/strings.cpp @@ -667,12 +667,12 @@ const TFilename& TFilename::tempdir() #ifndef FOXPRO - TString user = TApplication::user(); - - user.lower(); - if (res == 0 && user.not_empty()) + if (res == 0) { - if (_tempdir.find(user) < 0) + TString16 user(TApplication::user()); + + user.lower(); + if (_tempdir.find(user) != _tempdir.len() - user.len()) #if XVT_OS==XVT_OS_SCOUNIX _tempdir << '/' << user; #else