- }
- else
- {
- if (isprint(*buf_p)) /* printable character */
- {
- /* watch buffer size leaving one spare character for string null termination */
- if (t_con->line_size == TELNET_LINE_MAX_SIZE-1)
- {
- /* output audible bell if buffer is full */
- telnet_write(connection, "\x07", 1); /* "\a" does not work, at least on windows */
- }
- else if (t_con->line_cursor == t_con->line_size)
- {
+ else {
+ if (isprint(*buf_p)) { /* printable character */
+ /* watch buffer size leaving one spare character for
+ * string null termination */
+ if (t_con->line_size == TELNET_LINE_MAX_SIZE-1) {
+ /* output audible bell if buffer is full
+ * "\a" does not work, at least on windows */
+ telnet_write(connection, "\x07", 1);
+ } else if (t_con->line_cursor == t_con->line_size) {