summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyutyunkov Vyacheslav <tve@softmotions.com>2015-07-23 16:26:25 +0600
committerTyutyunkov Vyacheslav <tve@softmotions.com>2015-07-23 16:26:25 +0600
commite1fd0334655d1236a7a0c3bf5133af952b63da2c (patch)
treee0282c638c75472e589e40269aaffbb8d5d51d11
parent0b2a32eb407b92993d7e551d02a6ecc5f78a28bb (diff)
downloadejdb-e1fd0334655d1236a7a0c3bf5133af952b63da2c.tar.gz
ejdb-e1fd0334655d1236a7a0c3bf5133af952b63da2c.tar.bz2
ejdb-e1fd0334655d1236a7a0c3bf5133af952b63da2c.zip
#155 UMC fixed
-rw-r--r--src/bson/bson.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bson/bson.c b/src/bson/bson.c
index ac6a626..42e01eb 100644
--- a/src/bson/bson.c
+++ b/src/bson/bson.c
@@ -1397,7 +1397,7 @@ static void bson_append_fpath_from_iterator(const char *fpath, const bson_iterat
memcpy(key, fp, keylen);
key[keylen] = '\0';
rp++;
- fplen -= keylen;
+ fplen -= keylen + 1;
if (fplen <= 0) { //last part of fp
bson_append_field_from_iterator2(key, from, into);
while (nl-- > 0) {