Coverity 16763 Out-of-bounds access corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 May 2011 07:43:35 +0000 (07:43 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 20 May 2011 07:43:35 +0000 (07:43 +0000)
EPOS/TEpos.cxx

index b1a6da0..3e74b0b 100644 (file)
@@ -189,7 +189,7 @@ void TEpos::GenerateInputFile() {
        } else {
                strncpy(epo, getenv("ALICE_ROOT"), 255);
        }
-       strncat(epo, "/EPOS/epos167", 256);
+       strncat(epo, "/EPOS/epos167", 255);
 
        file << "fname pathnx " << epo << "/" << endl;
        file << "fname histo none" << endl;