From eb40f35b2d95b2701d92e3b8baf53832a3bd2993 Mon Sep 17 00:00:00 2001 From: Cristian Maglie Date: Mon, 6 May 2013 18:10:29 +0200 Subject: Added const modifier to String.c_str() --- cores/arduino/WString.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cores') diff --git a/cores/arduino/WString.h b/cores/arduino/WString.h index b3e280a..642b016 100644 --- a/cores/arduino/WString.h +++ b/cores/arduino/WString.h @@ -147,7 +147,7 @@ public: void getBytes(unsigned char *buf, unsigned int bufsize, unsigned int index=0) const; void toCharArray(char *buf, unsigned int bufsize, unsigned int index=0) const {getBytes((unsigned char *)buf, bufsize, index);} - char* c_str() const { return buffer; } + const char * c_str() const { return buffer; } // search int indexOf( char ch ) const; -- cgit v1.2.3-18-g5258