]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
remove memory leaks uninitalised memory read, etc...
authorptv <ptv@opencascade.com>
Fri, 14 Jul 2006 06:10:44 +0000 (06:10 +0000)
committerptv <ptv@opencascade.com>
Fri, 14 Jul 2006 06:10:44 +0000 (06:10 +0000)
noticed with Rational Purify on Windows

src/VISU_I/VISU_Gen_i.cc

index cd1ba85bdbba67cf849abfd61328891db151ff36..17a56cc214d4db62ce091595f28232ff922cc2d1 100644 (file)
@@ -405,7 +405,7 @@ namespace VISU
          }else
            if(MYDEBUG) MESSAGE("VISU_Gen_i::Save - "<<aCommand);
 
-         TCollection_AsciiString aString(strdup(aFileName.latin1()));
+         TCollection_AsciiString aString((char *)(aFileName.latin1()));
 
          HDFascii::ConvertFromHDFToASCII(strdup((aTmpDir + aString).ToCString()), true);