fix warnings -Wsizeof-pointer-memaccess
patch from Michael Gilbert, Thanks.
fixes bug 99