We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 481e6ab commit 0c306a2Copy full SHA for 0c306a2
esp8266/storestrings.cpp
@@ -86,10 +86,7 @@ bool STORESTRINGS_CLASS::add (const char * string){
86
if (need_resize)
87
{ //copy maximum length minus 3
88
strncpy(ptr,string,_maxstringlength-3);
89
- //add nul char
90
- ptr[_maxstringlength-3]='\0';
91
- //add dot to show string was cutted
92
- strcat(ptr,"...");
+ strcpy(ptr+_maxstringlength-3,"...");
93
}
94
else
95
{ //copy as it is
0 commit comments