Bug Fix

Replaces all instances of strncpy with memcpy, to allow for NULL bytes
to appear within the buffer.