]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Portability Alpha_OSF :
authorrahuel <rahuel@opencascade.com>
Fri, 5 Nov 2004 08:55:41 +0000 (08:55 +0000)
committerrahuel <rahuel@opencascade.com>
Fri, 5 Nov 2004 08:55:41 +0000 (08:55 +0000)
Memory corruption

src/Utils/Utils_Identity.cxx

index f30cdb03d2dfd1098e3076c823cea605c8e174fb..70824f69db1d6dc92c5774bc01cd0432352e1294 100644 (file)
@@ -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);
 }