Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: pubnub.cpp
- Revision:
- 36:382cb978bddc
- Parent:
- 35:d0d86a2bcdb3
--- a/pubnub.cpp Tue Aug 30 22:02:03 2016 +0000 +++ b/pubnub.cpp Wed Aug 31 18:04:30 2016 +0000 @@ -127,7 +127,7 @@ break; case ',': if (bracket_level == 1) { - messages.push_back(std::string(start, end-start-1)); + messages.push_back(std::string(start, end-start)); start = end + 1; } break; @@ -141,7 +141,7 @@ case ']': if (--bracket_level <= 0) { if (end-start-1 > 0) { - messages.push_back(std::string(start, end-start-1)); + messages.push_back(std::string(start, end-start)); } state = done; }