]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fixes.
authormorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 18:22:01 +0000 (18:22 +0000)
committermorsch <morsch@f7af4fe6-9843-0410-8265-dc069ae4e863>
Sat, 29 Jan 2011 18:22:01 +0000 (18:22 +0000)
EPOS/TEpos.cxx

index 343dccc4858aed89c9d6fa9373b8f313a4eb3820..e9dd810975683167b95b6ccb0a9e2d0d895ab9d8 100644 (file)
@@ -185,11 +185,11 @@ void TEpos::GenerateInputFile() {
        char epo[256];
        char *epoEnv = getenv("EPO");
        if (epoEnv) {
-               strcpy(epo, epoEnv);
+               strncpy(epo, 256, epoEnv);
        } else {
-               strcpy(epo, getenv("ALICE_ROOT"));
+               strncpy(epo, 256, getenv("ALICE_ROOT"));
        }
-       strcat(epo, "/EPOS/epos167");
+       strncat(epo, 256, "/EPOS/epos167");
 
        file << "fname pathnx " << epo << "/" << endl;
        file << "fname histo none" << endl;