src/channel-type.c (ptob_fill_input): Improve.