From: ageay Date: Fri, 26 Nov 2004 12:40:51 +0000 (+0000) Subject: Porting on CCRT and memory violation bug fix. X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a9484ab0a8cc2835e782ce0825f775e4a5bd560a;p=modules%2Fkernel.git Porting on CCRT and memory violation bug fix. --- diff --git a/src/Utils/Utils_Identity.cxx b/src/Utils/Utils_Identity.cxx index 55bed3bf7..570839bfa 100644 --- a/src/Utils/Utils_Identity.cxx +++ b/src/Utils/Utils_Identity.cxx @@ -72,12 +72,13 @@ Identity::Identity( const char *name ): _name(duplicate(name)),\ _adip(get_adip()),\ _uid(getuid()) ,\ _pwname(get_pwname()) ,\ - _dir(getcwd(NULL,0)),\ + _dir(getcwd(NULL,256)),\ _pid(getpid()) ,\ _start(time(NULL)),\ _cstart(ctime(&_start)) +//CCRT { - ; + ASSERT(strlen(_dir)<256); }