Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladiMihaylenko <vxmihaylenko@gmail.com>2017-10-11 19:54:09 +0300
committerYuri Gorshenin <mipt.vi002@gmail.com>2017-10-11 20:00:06 +0300
commit1f8265fb268408575bf87731e6e32367615ca571 (patch)
treef045a90854d7166a1588e0033c04a86d34ba68b3
parent2740386ae59604105ab4d4b31b3d6687b24ef635 (diff)
Added null-terminatorbeta-1062
-rw-r--r--ugc/storage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/ugc/storage.cpp b/ugc/storage.cpp
index 613d4af48c..6c15a371a0 100644
--- a/ugc/storage.cpp
+++ b/ugc/storage.cpp
@@ -61,6 +61,8 @@ string SerializeUGCIndex(vector<Storage::UGCIndex> const & indexes)
SerializerJson<Sink> ser(sink);
ser(index);
}
+
+ data.push_back('\0');
my::Json node(data.data());
json_array_append_new(array.get(), node.get_deep_copy());
}
@@ -299,6 +301,7 @@ string Storage::GetUGCToSend() const
ser(update);
}
+ data.push_back('\0');
my::Json serializedUgc(data.data());
auto embeddedNode = my::NewJSONObject();
ToJSONObject(*embeddedNode.get(), "data_version", index.m_dataVersion);