From 4f13b29c7fb1c8ab705017e6898d0f2533e13e7b Mon Sep 17 00:00:00 2001 From: Erik Frojdh Date: Thu, 2 May 2019 18:18:49 +0200 Subject: [PATCH] fixed copyserver bug --- slsDetectorSoftware/src/slsDetector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slsDetectorSoftware/src/slsDetector.cpp b/slsDetectorSoftware/src/slsDetector.cpp index a1cbb2060..4f1d3ed08 100755 --- a/slsDetectorSoftware/src/slsDetector.cpp +++ b/slsDetectorSoftware/src/slsDetector.cpp @@ -2966,7 +2966,7 @@ int slsDetector::resetFPGA() { int slsDetector::copyDetectorServer(const std::string &fname, const std::string &hostname) { - char args[][MAX_STR_LENGTH]{}; + char args[2][MAX_STR_LENGTH]{}; sls::strcpy_safe(args[0], fname.c_str()); sls::strcpy_safe(args[1], hostname.c_str()); FILE_LOG(logINFO) << "Sending detector server " << args[0] << " from host "