receive-pack: convert strncpy to xsnprintf