Fix memory access in afr's self-heal code (replace pointer casts by memcpy).
Fix memory access in afr's self-heal code (replace pointer casts by memcpy).

The previous patch I submitted for this file (afr's self-heal code)
introduced a terrible error. I overlooked the error checking in the
original code and misplaced the memcpy (too early).

So, please disregard the last one, this one is better :) hopefully.

Apologies.

Signed-off-by: Hraban Luyat <hraban@0brg.net>
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>

BUG: 493 (tcp + dht + armv5tel: “brick: disk layout has invalid count 29696”)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=493

Kaushikbv/Gluster,Kaushikbv/Gluster,Kaushikbv/Gluster