From e2badd0d94411299f8c594682a2a6914abcea511 Mon Sep 17 00:00:00 2001 From: TekuConcept Date: Thu, 23 Mar 2017 23:30:56 +0000 Subject: [PATCH] Using std::string instead of string literal --- .../Peripherals/Peripherals.SerialAdaptors/src/Serial.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/BoneCentral/Peripherals/Peripherals.SerialAdaptors/src/Serial.cpp b/BoneCentral/Peripherals/Peripherals.SerialAdaptors/src/Serial.cpp index 211a6d6..a67918a 100644 --- a/BoneCentral/Peripherals/Peripherals.SerialAdaptors/src/Serial.cpp +++ b/BoneCentral/Peripherals/Peripherals.SerialAdaptors/src/Serial.cpp @@ -72,7 +72,8 @@ void Serial::acknowledge() { std::string Serial::readString() { #ifdef DEBUG - return "Dummy String\0"; + std::string res("Dummy String"); + return res; #else if(fd==0) return ""; std::stringstream ss;