Fixes from Andrei Nigmatulin: 1) make the loop more readable in item_cachedump(), and fix a potential (very rare) off-by-1 buffer overflow possibility in the malloc'd buffer. 2) fix an error in item_stats_sizes (wrong buffer being zeroed)
Fixes from Andrei Nigmatulin:
1) make the loop more readable in item_cachedump(), and
fix a potential (very rare) off-by-1 buffer overflow possibility
in the malloc'd buffer.
2) fix an error in item_stats_sizes (wrong buffer being zeroed)


git-svn-id: 712aefb8596620db6486b8151c1cac37df8d9591@221 b0b603af-a30f-0410-a34e-baf09ae79d0b

zaycev/memcached,couchbase/moxi,leedc/memcached,daverigby/kv_engine,samanbarghi/memcached,steveyen/moxi,amyvmiwei/memcached,samanbarghi/memcached,Distrotech/memcached,membase/moxi,Dhruva6/memcached,elfchief/memcached,daverigby/memcached,owendCB/memcached,couchbase/moxi,bpzhang/memcached,dianerdianer/memcached,couchbase/memcached,guikcd/memcached,DSrcl/memcached,ZhangZhenhua/memcached,myPublicGit/memcached,daverigby/memcached,leverich/memcached-affinity,DigitalAce/memcached,osheroff/memcached_kdtree,13693100472/memcached,kamyu104/memcached,leedc/memcached,cloudrain21/memcached-1,gencer/memcached,angusfenying/memcached-win64,membase/moxi,samt42/memcached,rmccullagh/memcached,Danzeer/memcached,dianerdianer/memcached,dkrotx/memcached-dd,membase/moxi,Metaswitch/memcached,Metaswitch/memcached,dustin/memcached,jeremiahyan/memcached,samanbarghi/memcached,rhli/memcached,jimwwalker/memcached,mitliucak/memcached,Danzeer/memcached,zbase/moxi,williamcheungthu/memcached,surajdharmapuram/memcached,abhinavdangeti/memcached,shelsonjava/memcached,zbase/memcached,Distrotech/memcached,memcached/memcached,xiaosl/memcached,msg7086/repcached,cloudrain21/memcached-1,surajdharmapuram/memcached,rmccullagh/memcached,cloudrain21/memcached,guikcd/memcached,osheroff/memcached_kdtree,allen8807/memcached-1,13693100472/memcached,ZhangZhenhua/memcached,dianerdianer/memcached,msg7086/repcached,zaycev/memcached,fengshao0907/memcached,mitliucak/memcached,elfchief/memcached,neutronsharc/memcached,couchbase/moxi,daverigby/kv_engine,tellapart/memcached,owendCB/memcached,angusfenying/memcached-win64,mrkwse/memcached,surajdharmapuram/memcached,steveyen/moxi,romanticode/memcached,emcconville/memcached,membase/moxi,zaycev/memcached,myPublicGit/memcached,gencer/memcached,EdwardLee03/memcached,couchbase/moxi,rmccullagh/memcached,sagark/memcached-accel,13693100472/memcached,angusfenying/memcached-win64,daverigby/kv_engine,Metaswitch/memcached,zbase/moxi,amyvmiwei/memcached,guikcd/memcached,samt42/memcached,myPublicGit/memcached,Dhruva6/memcached,daverigby/memcached,dormando/memcached,jimwwalker/memcached,samt42/memcached,rmccullagh/memcached,dormando/memcached,tmharrisonwang/memcached,membase/moxi,ClearwaterCore/memcached,DigitalAce/memcached,samanbarghi/memcached,cloudrain21/memcached,neutronsharc/memcached,xiaosl/memcached,kamyu104/memcached,ClearwaterCore/memcached,mitliucak/memcached,cloudrain21/memcached-1,shelsonjava/memcached,surajdharmapuram/memcached,saumitra/memcached,Dhruva6/memcached,bpzhang/memcached,zbase/memcached,sagark/memcached-accel,zbase/moxi,alexandermerritt/memcached,couchbase/memcached,EdwardLee03/memcached,abhinavdangeti/memcached,Danzeer/memcached,zbase/memcached,leedc/memcached,alexandermerritt/memcached,mdounin/memcached,DSrcl/memcached,gencer/memcached,jbergstroem/memcached,couchbase/memcached,steveyen/moxi,osheroff/memcached_kdtree,dustin/memcached,zbase/moxi,mdounin/memcached,neutronsharc/memcached,kamyu104/memcached,williamcheungthu/memcached,DigitalAce/memcached,rmccullagh/memcached,samt42/memcached,ClearwaterCore/memcached,DSrcl/memcached,jeremiahyan/memcached,dkrotx/memcached-dd,msg7086/repcached,zbase/moxi,steveyen/moxi,gencer/memcached,romanticode/memcached,niaomingjian/memcached,sagark/memcached-accel,leverich/memcached-affinity,membase/moxi,emcconville/memcached,msg7086/repcached,abhinavdangeti/memcached,jbergstroem/memcached,elfchief/memcached,mitliucak/memcached,bpzhang/memcached,zaycev/memcached,couchbase/moxi,rhli/memcached,williamcheungthu/memcached,fengshao0907/memcached,sagark/memcached-accel,amyvmiwei/memcached,jbergstroem/memcached,jeremiahyan/memcached,mrkwse/memcached,owendCB/memcached,alexandermerritt/memcached,owendCB/memcached,gencer/memcached,13693100472/memcached,tellapart/memcached,tomykaira/memcached,fengshao0907/memcached,zbase/memcached,elfchief/memcached,memcached/memcached,abhinavdangeti/memcached,Dhruva6/memcached,ClearwaterCore/memcached,cloudrain21/memcached,DSrcl/memcached,myPublicGit/memcached,angusfenying/memcached-win64,EdwardLee03/memcached,daverigby/memcached,Metaswitch/memcached,dormando/memcached,steveyen/moxi,tmharrisonwang/memcached,leedc/memcached,tellapart/memcached,xiaosl/memcached,emcconville/memcached,jeremiahyan/memcached,ZhangZhenhua/memcached,ZhangZhenhua/memcached,niaomingjian/memcached,abhinavdangeti/memcached,Danzeer/memcached,guikcd/memcached,shelsonjava/memcached,zbase/memcached,msg7086/repcached,allen8807/memcached-1,tmharrisonwang/memcached,tomykaira/memcached,alexandermerritt/memcached,EdwardLee03/memcached,tomykaira/memcached,amyvmiwei/memcached,mrkwse/memcached,mdounin/memcached,dustin/memcached,bpzhang/memcached,shelsonjava/memcached,romanticode/memcached,cloudrain21/memcached-1,Metaswitch/memcached,saumitra/memcached,neutronsharc/memcached,williamcheungthu/memcached,dkrotx/memcached-dd,couchbase/memcached,romanticode/memcached,tomykaira/memcached,cloudrain21/memcached,jimwwalker/memcached,emcconville/memcached,leverich/memcached-affinity,memcached/memcached,xiaosl/memcached,Distrotech/memcached,fengshao0907/memcached,couchbase/moxi,memcached/memcached,mrkwse/memcached,rhli/memcached,kamyu104/memcached,sagark/memcached-accel,saumitra/memcached,dkrotx/memcached-dd,dianerdianer/memcached,tmharrisonwang/memcached,13693100472/memcached,elfchief/memcached,dormando/memcached,memcached/memcached,allen8807/memcached-1,niaomingjian/memcached,allen8807/memcached-1,guikcd/memcached,dormando/memcached,rhli/memcached,daverigby/kv_engine,niaomingjian/memcached