calypso/uart.c: Fix array bounds checking