From f0844a77e8901ef24bfe9e4d4b0c6973f507eee9 Mon Sep 17 00:00:00 2001 From: Kristian Sloth Lauszus Date: Sat, 22 Dec 2012 22:25:05 +0100 Subject: [PATCH] Fixed bug when printing const char* --- SPP.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SPP.cpp b/SPP.cpp index b8c6f199..dd6e2b40 100644 --- a/SPP.cpp +++ b/SPP.cpp @@ -743,7 +743,7 @@ void SPP::println(const String &str) { print(output); } void SPP::println(const char* data) { - char output[strlen(data)+2]; + char output[strlen(data)+3]; strcpy(output,data); strcat(output,"\r\n"); print(output);