]> git.uio.no Git - u/mrichter/AliRoot.git/blobdiff - MUON/AliMUONTriggerGUIdimap.cxx
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / MUON / AliMUONTriggerGUIdimap.cxx
index 5eaf6eabbcea232711ccb0b1be593364634377ac..ed3602fe0e0ef142a5e50f9d05519feaf7769091 100644 (file)
@@ -33,6 +33,7 @@
 #include <TStyle.h>
 #include <TObjArray.h>
 
+#include "AliLoader.h"
 #include "AliRunLoader.h"
 
 #include "AliMUONVDigit.h"
@@ -257,7 +258,7 @@ void AliMUONTriggerGUIdimap::DrawMaps(Int_t chamber)
   TPaveText *label;
   TBox *boxd;
 
-  Char_t cln[3];
+  Char_t cln[4]; // must be 4 long - room for terminating '\0'
   Int_t detElemId, cathode, ix, iy, charge, color;
   Int_t holdS, holdL, holdC;
   Float_t xCenter, yCenter, xWidth, yWidth, holdXC, holdYC;
@@ -326,7 +327,7 @@ void AliMUONTriggerGUIdimap::DrawMaps(Int_t chamber)
 
     if (holdL == 9) {
 
-      snprintf(cln,3,"C%1d",holdC);
+      snprintf(cln,4,"C%1d",holdC);
 
       ptx1 = holdXC - lWidth;
       ptx2 = holdXC + lWidth;
@@ -341,7 +342,7 @@ void AliMUONTriggerGUIdimap::DrawMaps(Int_t chamber)
     }
     if (holdL == 1) {
 
-      snprintf(cln,3,"C%1d",holdC);
+      snprintf(cln,4,"C%1d",holdC);
 
       ptx1 = holdXC - lWidth;
       ptx2 = holdXC + lWidth;
@@ -356,7 +357,7 @@ void AliMUONTriggerGUIdimap::DrawMaps(Int_t chamber)
     }
     if (holdS == 0 && holdC == 7) {
 
-      snprintf(cln,3,"L%1d",holdL);
+      snprintf(cln,4,"L%1d",holdL);
 
       ptx1 = -1.07*frameXmax - lWidth;
       ptx2 = -1.07*frameXmax + lWidth;
@@ -371,7 +372,7 @@ void AliMUONTriggerGUIdimap::DrawMaps(Int_t chamber)
     }
     if (holdS == 1 && holdC == 7) {
 
-      snprintf(cln,3,"L%1d",holdL);
+      snprintf(cln,4,"L%1d",holdL);
 
       ptx1 = +1.07*frameXmax - lWidth;
       ptx2 = +1.07*frameXmax + lWidth;