]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Coverity fix
authormasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2011 09:48:49 +0000 (09:48 +0000)
committermasera <masera@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 16 Feb 2011 09:48:49 +0000 (09:48 +0000)
ITS/AliITStrackerMI.cxx

index 967d4fbcbebc0e5b47b7d89e0c182f93a177e470..1f280d2e5d1dd181bfdab786d752d7e30ffd013a 100644 (file)
@@ -5196,7 +5196,7 @@ Int_t AliITStrackerMI::FindClusterOfTrack(int label, int lr, int* store) const /
 Int_t AliITStrackerMI::GetPattern(const AliITStrackMI* track, char* patt)
 {
   // creates pattarn of hits marking fake/corrects by f/c. Used for debugging (RS) 
-  strcpy(patt,"......      "); patt[6] = 0;
+  strncpy(patt,"......",6); 
   int tpcLabel = 0;
   if (track->GetESDtrack()) tpcLabel = track->GetESDtrack()->GetTPCLabel();
   //