Avoid a potential overflow when setting the source offset