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.
Revision 36:382cb978bddc, committed 2016-08-31
- Comitter:
- sveljko
- Date:
- Wed Aug 31 18:04:30 2016 +0000
- Parent:
- 35:d0d86a2bcdb3
- Commit message:
- Fixed "gobbling" of the last character in received message (from the subscribe transaction);
Changed in this revision
pubnub.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- 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; }