]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/TEpos.cxx
major TRD reconstruction update
[u/mrichter/AliRoot.git] / EPOS / TEpos.cxx
index e9dd810975683167b95b6ccb0a9e2d0d895ab9d8..3e74b0b08c33b8f85ab296d269fb625259cb7cc7 100644 (file)
@@ -185,11 +185,11 @@ void TEpos::GenerateInputFile() {
        char epo[256];
        char *epoEnv = getenv("EPO");
        if (epoEnv) {
-               strncpy(epo, 256, epoEnv);
+               strncpy(epo, epoEnv, 255);
        } else {
-               strncpy(epo, 256, getenv("ALICE_ROOT"));
+               strncpy(epo, getenv("ALICE_ROOT"), 255);
        }
-       strncat(epo, 256, "/EPOS/epos167");
+       strncat(epo, "/EPOS/epos167", 255);
 
        file << "fname pathnx " << epo << "/" << endl;
        file << "fname histo none" << endl;