Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update String::concat
  • Loading branch information
dav1901 authored Nov 7, 2018
commit 3b37b35a755de9cf1781c62da62565a346b17e20
1 change: 1 addition & 0 deletions cores/arduino/WString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,7 @@ unsigned char String::concat(const char *cstr)

unsigned char String::concat(char c)
{
if (c == '\0') return 1;
char buf[2];
buf[0] = c;
buf[1] = 0;
Expand Down