]> SALOME platform Git repositories - modules/kernel.git/commitdiff
Salome HOME
Porting on CCRT and memory violation bug fix.
authorageay <ageay>
Fri, 26 Nov 2004 12:40:51 +0000 (12:40 +0000)
committerageay <ageay>
Fri, 26 Nov 2004 12:40:51 +0000 (12:40 +0000)
src/Utils/Utils_Identity.cxx

index 55bed3bf7409daf4c3c58fd355f449dac09559c9..570839bfa3ad993b957158de24ed40d5603a1298 100644 (file)
@@ -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);
 }