]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Technical fix for bug #55111: possible memory corruption in AliConfig.cxx
authorhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Nov 2009 15:47:56 +0000 (15:47 +0000)
committerhristov <hristov@f7af4fe6-9843-0410-8265-dc069ae4e863>
Thu, 26 Nov 2009 15:47:56 +0000 (15:47 +0000)
STEER/AliConfig.cxx

index cf0eaf018745745f4a278d64106639b9c4b1eaa0..1239d4f7db44cba5c2a711cdbee7e7e86f442b95 100644 (file)
@@ -399,7 +399,7 @@ void    AliConfig::Add (char *list)
   
   const char   *confPath = gSystem->Getenv ("ALICE_CONFIG_PATH");
   if  (confPath) {
-    path = new char[strlen (confPath)];
+    path = new char[strlen (confPath)+1];
     strcpy (path, confPath);
   } else {
     const char   *alice = gSystem->Getenv ("ALICE_ROOT");