Murata RF modules are designed to simplify wireless development and certification by minimizing the amount of RF expertise you need to wirelessly enable a wide range of applications.
Diff: Payload.cpp
- Revision:
- 4:7388451219ee
- Parent:
- 2:f8e393a81c25
- Child:
- 7:a71d7c24afc0
diff -r 90ea1b8b2621 -r 7388451219ee Payload.cpp --- a/Payload.cpp Thu Feb 05 04:02:41 2015 +0000 +++ b/Payload.cpp Thu Feb 05 17:43:18 2015 +0000 @@ -94,7 +94,8 @@ void Payload::SetContent(const char value) { if (position >= max) { - char * temp = new char[max + EXPANDSIZE]; + max += EXPANDSIZE; + char * temp = new char[max]; memcpy(temp, data, position); delete[] data; data = temp;