Correct source of address violation in creating character string
authorfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 1999 16:58:28 +0000 (16:58 +0000)
committerfca <fca@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 3 Nov 1999 16:58:28 +0000 (16:58 +0000)
TGeant3/TGeant3.cxx

index 3c65eeb033a119d463e1fdf246c708c5c26736e2..0a543d4c8f9af944c202bc42add968ffba00ca4e 100644 (file)
@@ -15,6 +15,9 @@
 
 /*
 $Log$
+Revision 1.16  1999/11/03 13:17:08  fca
+Have ProdProcess return const char*
+
 Revision 1.15  1999/10/26 06:04:50  fca
 Introduce TLorentzVector in AliMC::GetSecondary. Thanks to I.Hrivnacova
 
@@ -3452,8 +3455,8 @@ void TGeant3::WriteEuclid(const char* filnam, const char* topvol,
     end=i;
     break;
   }
-  filext=new char[end+4];
-  filetme=new char[end+4];
+  filext=new char[end+5];
+  filetme=new char[end+5];
   strncpy(filext,filnam,end);
   strncpy(filetme,filnam,end);
   //