]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - EPOS/TEpos.cxx
Coverity defect corrected.
[u/mrichter/AliRoot.git] / EPOS / TEpos.cxx
index 4bbb68a783d75455f9cb4ce28b9e11e9a7c9d379..b1a6da0edfcfe51b872e81f34509bd0ca187378e 100644 (file)
@@ -185,9 +185,9 @@ void TEpos::GenerateInputFile() {
        char epo[256];
        char *epoEnv = getenv("EPO");
        if (epoEnv) {
-               strncpy(epo, epoEnv, 256);
+               strncpy(epo, epoEnv, 255);
        } else {
-               strncpy(epo, getenv("ALICE_ROOT"), 256);
+               strncpy(epo, getenv("ALICE_ROOT"), 255);
        }
        strncat(epo, "/EPOS/epos167", 256);