]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
One more attempt to fix STRING_OVERFLOW defect reported by Coverity
authorivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Sep 2010 09:53:39 +0000 (09:53 +0000)
committerivana <ivana@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 29 Sep 2010 09:53:39 +0000 (09:53 +0000)
MUON/AliMUONLocalTriggerBoard.cxx

index d03984f99da5b6c532d4b62f2f6dfa4570625e24..7fe94e586c4a5d7975377bf1e91d4f3a7fdb0de8 100644 (file)
@@ -514,7 +514,7 @@ void AliMUONLocalTriggerBoard::Module(char *mod)
 ///
    const Int_t kMaxfields = 2; char **fields = new char*[kMaxfields];
 
-   if ( fName.Length() > 100 ) {
+   if ( TString(GetName()).Length() > 100 ) {
      AliErrorStream() << "Name too long: " << GetName() << endl;
      return;
    }   
@@ -1206,7 +1206,7 @@ Int_t AliMUONLocalTriggerBoard::GetI() const
 
    const Int_t kMaxfields = 2; char **fields = new char*[kMaxfields];
 
-   if ( fName.Length() > 100 ) {
+   if ( TString(GetName()).Length() > 100 ) {
      AliErrorStream() << "Name too long: " << GetName() << endl;
      return 0;
    }