MB-9766: Don't assume that the string is zero terminated
MB-9766: Don't assume that the string is zero terminated

Change-Id: I7804843d3e411000806c7f6532a7dab3835100ca
Reviewed-on: http://review.couchbase.org/31233
Reviewed-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>
Tested-by: Michael Wiederhold <a17fed27eaa842282862ff7c1b9c8395a26ac320@couchbase.com>

teligent-ru/ep-engine,daverigby/ep-engine,jimwwalker/ep-engine,couchbase/ep-engine,daverigby/kv_engine,daverigby/ep-engine,hisundar/ep-engine,owendCB/ep-engine,jimwwalker/ep-engine,couchbase/ep-engine,hisundar/ep-engine,sriganes/ep-engine,membase/ep-engine,membase/ep-engine,teligent-ru/ep-engine,teligent-ru/ep-engine,jimwwalker/ep-engine,daverigby/kv_engine,teligent-ru/ep-engine,sriganes/ep-engine,membase/ep-engine,owendCB/ep-engine,membase/ep-engine,daverigby/kv_engine,jimwwalker/ep-engine,owendCB/ep-engine,daverigby/kv_engine,owendCB/ep-engine,couchbase/ep-engine,hisundar/ep-engine,daverigby/ep-engine,hisundar/ep-engine,sriganes/ep-engine,daverigby/ep-engine,sriganes/ep-engine,couchbase/ep-engine