From 8426162eb0a463118e77e3fe32b96552565584a1 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Tue, 29 Mar 2016 11:47:35 -0400 Subject: add things --- src/client.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/client.c') diff --git a/src/client.c b/src/client.c index 90a166b..45139e8 100644 --- a/src/client.c +++ b/src/client.c @@ -46,9 +46,9 @@ void out_raw(const void *buf, size_t len) error("out() called from master"); if(!len) return; - + try_again: - + while(output_locked); /* something weird happened and the value changed between the loop and here */ @@ -102,7 +102,9 @@ void __attribute__((format(printf,1,2))) out(const char *fmt, ...) if(is_newline) ++ptr; /* skip the newline */ - while(*ptr == ' ') + + /* skip following spaces */ + while(*ptr == ' ') ++ptr; last_space = 0; pos = 0; @@ -186,7 +188,7 @@ tryagain: } } -/* still not encrypted, but a bit more secure than echoing the password! */ +/* still not encrypted, but a bit better than echoing the password! */ char *client_read_password(void) { telnet_echo_off(); -- cgit v1.1