tty vt: fix character insertion overflow