Correction
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 18:26:55 +0000 (18:26 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 18:26:55 +0000 (18:26 +0000)
EPOS/TEpos.cxx

index e9dd810..4bbb68a 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;