add null byte in read() example