Fixed bug when printing const char*

This commit is contained in:
Kristian Sloth Lauszus 2012-12-22 22:25:05 +01:00
parent a4f21cea8c
commit f0844a77e8

View file

@ -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);