Fix explicit length [-Wsizeof-pointer-memaccess]

fix error for GCC 4.8