Input: db9 - fix potential buffer overrun