]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - TPC/AliTPCMonitorDialog.cxx
more secure string operations
[u/mrichter/AliRoot.git] / TPC / AliTPCMonitorDialog.cxx
index d4aa93d92d64a6b5030ffdc0bda47e270cc1682f..cf15bbfe2a01061d420c5f17ea937a732b1b969d 100755 (executable)
@@ -41,6 +41,7 @@ New TPC monitoring package from Stefan Kniege. The monitoring package can be sta
 
 
  
+#include <cstdlib>
 #include "AliTPCMonitorDialog.h"
 #include "TGTab.h"
 #include "TGButton.h"
@@ -322,12 +323,12 @@ void AliTPCMonitorDialog::HandleButtons(Int_t id)
            if(s1=="all"){  fComponents[j] = -1;              }
            else         {  fComponents[j] = (int)atoi(s1.Data()); }
            if(
-              j==0 && (fComponents[j] < -1 || fComponents[j]>5000) ||
-              j==1 && (fComponents[j] < -1 || fComponents[j]>5   ) ||
-              j==2 && (fComponents[j] < -1 || fComponents[j]>1   ) ||
-              j==3 && (fComponents[j] < -1 || fComponents[j]>25  ) ||
-              j==4 && (fComponents[j] < -1 || fComponents[j]>6   ) ||
-              j==5 && (fComponents[j] < -1 || fComponents[j]>8   )    )
+              (j==0 && (fComponents[j] < -1 || fComponents[j]>5000)) ||
+              (j==1 && (fComponents[j] < -1 || fComponents[j]>5   )) ||
+              (j==2 && (fComponents[j] < -1 || fComponents[j]>1   )) ||
+              (j==3 && (fComponents[j] < -1 || fComponents[j]>25  )) ||
+              (j==4 && (fComponents[j] < -1 || fComponents[j]>6   )) ||
+              (j==5 && (fComponents[j] < -1 || fComponents[j]>8   ))    )
              {
                compsel =0;
                AliError("Settings out of range ( version 2) ");