Fixed -Wsizeof-pointer-memaccess error