Buf is marked UNUSED in the first line.