From 600fbc9b699ce249a46e0e11ad3b64ba71349683 Mon Sep 17 00:00:00 2001
From: "Stephen A. Wood" <saw@jlab.org>
Date: Tue, 9 Apr 2013 13:16:13 -0400
Subject: [PATCH] Fix compiler warnings on string copy.

---
 src/THcScintillatorPlane.cxx | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/THcScintillatorPlane.cxx b/src/THcScintillatorPlane.cxx
index 0d2c7c2..1328e08 100644
--- a/src/THcScintillatorPlane.cxx
+++ b/src/THcScintillatorPlane.cxx
@@ -141,14 +141,14 @@ Int_t THcScintillatorPlane::ReadDatabase( const TDatime& date )
   //
   // Based on the signs of these quantities in the .pos file the correspondence 
   // should be bot=>left  and top=>right when comparing x and y-type scintillators
-  char *tmpleft, *tmpright;
+  char tmpleft[6], tmpright[6];
   if (fPlaneNum==1 || fPlaneNum==3) {
-    tmpleft="left";
-    tmpright="right";
+    strcpy(tmpleft,"left");
+    strcpy(tmpright,"right");
   } 
   else {
-    tmpleft="bot";
-    tmpright="top";
+    strcpy(tmpleft,"bot");
+    strcpy(tmpright,"top");
   }
 
   Double_t tmpdouble[fTotPlanes];
-- 
GitLab