Fixed size check in uart buffer read