use memset() directly
Compatibility with old ar

From Tizzaran 89445cf74d19d164cc09552fd2494bc9b78f8c79
use memcpy directly