Remove unnecessary NULL character.
Formatting changes.
Output both endpoints of a port range.