two memcpy to memmove changes, fix use of uninitialized err value
Merge pull request #61 from hostilefork/fix-mem-errors

two memcpy to memmove changes, fix use of uninitialized err value