A potential crash with a truck that veered off the roadway was averted by navigating across the center divider.