1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

PROGMEM compatibility changes to String (#7724)

Changed contructor to use strlen_P
This commit is contained in:
Drzony 2020-11-25 14:20:29 +01:00 committed by GitHub
parent 32dbc2cb3d
commit 8c7fd6aac1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,7 +32,7 @@
String::String(const char *cstr) { String::String(const char *cstr) {
init(); init();
if (cstr) if (cstr)
copy(cstr, strlen(cstr)); copy(cstr, strlen_P(cstr));
} }
String::String(const String &value) { String::String(const String &value) {