Fix array subscript warning in memcache/cmds