Fix an off-by-one in gpio_pin_list().

Coverity CID:	1256495