pkt-line: check write_in_full() errors against "< 0"