]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/TEpos.cxx
Correction
[u/mrichter/AliRoot.git] / EPOS / TEpos.cxx
index e9dd810975683167b95b6ccb0a9e2d0d895ab9d8..4bbb68a783d75455f9cb4ce28b9e11e9a7c9d379 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, 256);
        } else {
-               strncpy(epo, 256, getenv("ALICE_ROOT"));
+               strncpy(epo, getenv("ALICE_ROOT"), 256);
        }
-       strncat(epo, 256, "/EPOS/epos167");
+       strncat(epo, "/EPOS/epos167", 256);
 
        file << "fname pathnx " << epo << "/" << endl;
        file << "fname histo none" << endl;