Correct Memory check in sysclib_memset