From a9484ab0a8cc2835e782ce0825f775e4a5bd560a Mon Sep 17 00:00:00 2001 From: ageay Date: Fri, 26 Nov 2004 12:40:51 +0000 Subject: [PATCH] Porting on CCRT and memory violation bug fix. --- src/Utils/Utils_Identity.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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); } -- 2.39.2