summaryrefslogtreecommitdiff
path: root/cpp
diff options
context:
space:
mode:
authorfrsyuki <frsyuki@users.sourceforge.jp>2010-04-22 14:38:10 +0900
committerfrsyuki <frsyuki@users.sourceforge.jp>2010-04-22 14:38:10 +0900
commit354af69f6204ba4523cf7ca3e50f2af1ad8d609e (patch)
tree67083ec80d3a0ce761e92dc2092623ea77ecd037 /cpp
parentbccac610a462f6f989f10d58b9fc55522624d76a (diff)
downloadmsgpack-python-354af69f6204ba4523cf7ca3e50f2af1ad8d609e.tar.gz
ruby: fixes SEGV on MessagePack_Unpacker_each
Diffstat (limited to 'cpp')
-rw-r--r--cpp/README.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/cpp/README.md b/cpp/README.md
index cc1ba38..454ce1a 100644
--- a/cpp/README.md
+++ b/cpp/README.md
@@ -28,7 +28,7 @@ To use the library in your program, include msgpack.hpp header and link msgpack
std::vector<std::string> target;
target.push_back("Hello,");
target.push_back("World!");
-
+
// Serialize it.
msgpack::sbuffer buffer; // simple buffer
msgpack::pack(&buffer, target);
@@ -38,7 +38,7 @@ To use the library in your program, include msgpack.hpp header and link msgpack
msgpack::object obj;
msgpack::unpack_return ret =
msgpack::unpack(buffer.data, buffer.size, NULL, &mempool, &obj);
-
+
if(ret != msgapck::UNPACK_SUCCESS) {
// error check
exit(1);