From 35fbdab127e31fdfbb6a37155a97e4ff3a4017c1 Mon Sep 17 00:00:00 2001 From: rahuel Date: Fri, 5 Nov 2004 08:55:41 +0000 Subject: [PATCH] Portability Alpha_OSF : Memory corruption --- src/Utils/Utils_Identity.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Utils/Utils_Identity.cxx b/src/Utils/Utils_Identity.cxx index f30cdb03d..70824f69d 100644 --- a/src/Utils/Utils_Identity.cxx +++ b/src/Utils/Utils_Identity.cxx @@ -72,12 +72,14 @@ 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 _dir(getcwd(NULL,0)),\ + { - ; + ASSERT(strlen(_dir)<256); } -- 2.39.2