Coverity defect corrected.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 14:51:13 +0000 (14:51 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Tue, 26 Apr 2011 14:51:13 +0000 (14:51 +0000)
EPOS/TEpos.cxx

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