Ensure null-terminated buffer
Replace an open/read/close sequence with wio_read_file_content
Replace another open/read/close sequence with wio_read_file_content
Fix display of ip with negative numbers
Block SIGPIPE to avoid crash on unexpected socket close